remove UTF-8 code when compiling with --disable-unicode

This commit is contained in:
Christian Hesse
2015-07-17 14:33:34 +02:00
parent 9e67b6585e
commit d8e23bb084
5 changed files with 51 additions and 11 deletions

View File

@ -42,7 +42,11 @@ static void ListItem_display(Object* cast, RichString* out) {
snprintf(buffer, len, "%s", this->value);
*/
if (this->moving) {
RichString_write(out, CRT_colors[DEFAULT_COLOR], CRT_utf8 ? "" : "+ ");
RichString_write(out, CRT_colors[DEFAULT_COLOR],
#ifdef HAVE_LIBNCURSESW
CRT_utf8 ? "" :
#endif
"+ ");
} else {
RichString_prune(out);
}