View | Details | Raw Unified
Collapse All | Expand All

(-) slang-1.4.5/src/sldisply.c.jj (-1 / +14 lines)
 Lines 378-385   void SLsmg_write_nwchars (wchar_t *str, Link Here 
  for (i = 0; i < n; i++, str) {
  for (i = 0; i < n; i++, str) {
    ch = *str++;
    ch = *str++;
#ifndef IBMPC_SYSTEM
#ifndef IBMPC_SYSTEM
    if (alt_char_set_flag)
    if (alt_char_set_flag) {
      ch = Alt_Char_Set[ch & 0x7F];
      ch = Alt_Char_Set[ch & 0x7F];
      w = 1;
    } else
#endif
#endif
    w = wcwidth(ch);
    w = wcwidth(ch);
 Lines 1498-1503   static void write_wstring_with_care (SLs Link Here 
	  }
	  }
     }
     }
   if (Current_Fgbg & SLTT_ALTC_MASK)
     {
	char c;
	while (len--)
	  {
	     c = *str++;
	     tt_write(&c, 1);
	  }
	return;
     }
   memset (&mbstate, 0, sizeof (mbstate));
   memset (&mbstate, 0, sizeof (mbstate));
   while (len--)
   while (len--)
     {
     {