From 356b501bdc4bb0297d3e0050ae0aa772367141af Mon Sep 17 00:00:00 2001 From: Slava Zanko Date: Tue, 21 Apr 2009 11:51:24 +0300 Subject: [PATCH] revert commit No. e19de53a064a90970d47c1 "change addch to addstr" --- edit/editdraw.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/edit/editdraw.c b/edit/editdraw.c index d8289ae15..037dda521 100644 --- a/edit/editdraw.c +++ b/edit/editdraw.c @@ -300,7 +300,8 @@ print_to_widget (WEdit *edit, long row, int start_col, int start_col_real, lowlevel_set_color (color); } } - int res = g_unichar_to_utf8 (textchar, str); +#ifndef HAVE_SLANG + int res = g_unichar_to_utf8 (textchar, str); if ( res == 0 ) { str[0] = '.'; str[1] = '\0'; @@ -308,6 +309,9 @@ print_to_widget (WEdit *edit, long row, int start_col, int start_col_real, str[res] = '\0'; } addstr (str); +#else + addch (textchar); +#endif p++; } }