Browse Source

change addch to addstr

Ilia Maslakov 16 years ago
parent
commit
e19de53a06
1 changed files with 1 additions and 5 deletions
  1. 1 5
      edit/editdraw.c

+ 1 - 5
edit/editdraw.c

@@ -300,8 +300,7 @@ print_to_widget (WEdit *edit, long row, int start_col, int start_col_real,
 		lowlevel_set_color (color);
 	    }
 	}
-#ifndef HAVE_SLANG
-        int res = g_unichar_to_utf8 (textchar, str);
+	int res = g_unichar_to_utf8 (textchar, str);
         if ( res == 0 ) {
             str[0] = '.';
             str[1] = '\0';
@@ -309,9 +308,6 @@ print_to_widget (WEdit *edit, long row, int start_col, int start_col_real,
             str[res] = '\0';
         }
 	addstr (str);
-#else
-	addch (textchar);
-#endif
 	p++;
     }
 }