From e19de53a064a90970d47c1180c710030340227f4 Mon Sep 17 00:00:00 2001 From: Ilia Maslakov Date: Mon, 20 Apr 2009 20:18:12 +0000 Subject: [PATCH] change addch to addstr --- edit/editdraw.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/edit/editdraw.c b/edit/editdraw.c index 037dda521..d8289ae15 100644 --- a/edit/editdraw.c +++ b/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++; } }