revert commit No. e19de53a06 "change addch to addstr"

This commit is contained in:
Slava Zanko 2009-04-21 11:51:24 +03:00
parent 540bdb85ed
commit 356b501bdc

View File

@ -300,7 +300,8 @@ print_to_widget (WEdit *edit, long row, int start_col, int start_col_real,
lowlevel_set_color (color); 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 ) { if ( res == 0 ) {
str[0] = '.'; str[0] = '.';
str[1] = '\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'; str[res] = '\0';
} }
addstr (str); addstr (str);
#else
addch (textchar);
#endif
p++; p++;
} }
} }