summaryrefslogtreecommitdiff
blob: 6c0a80f1ea1ea6041b85a637abd6c3be71d57f35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- slang-1.4.5/src/slsmg.c.jj	2003-02-21 12:11:37.000000000 -0500
+++ slang-1.4.5/src/slsmg.c	2003-02-21 14:09:28.000000000 -0500
@@ -378,8 +378,10 @@ void SLsmg_write_nwchars (wchar_t *str, 
   for (i = 0; i < n; i++, str) {
     ch = *str++;
 #ifndef IBMPC_SYSTEM
-    if (alt_char_set_flag)
+    if (alt_char_set_flag) {
       ch = Alt_Char_Set[ch & 0x7F];
+      w = 1;
+    } else
 #endif
     w = wcwidth(ch);
 
--- slang-1.4.5/src/sldisply.c.jj	2003-02-21 12:11:37.000000000 -0500
+++ slang-1.4.5/src/sldisply.c	2003-02-21 15:51:43.000000000 -0500
@@ -1498,6 +1498,17 @@ static void write_wstring_with_care (SLs
 	  }
      }
 
+   if (Current_Fgbg & SLTT_ALTC_MASK)
+     {
+	char c;
+	while (len--)
+	  {
+	     c = *str++;
+	     tt_write(&c, 1);
+	  }
+	return;
+     }
+
    memset (&mbstate, 0, sizeof (mbstate));
    while (len--)
      {