summaryrefslogtreecommitdiffstats
path: root/ListItem.c
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2015-07-17 14:33:34 +0200
committerChristian Hesse <mail@eworm.de>2015-08-19 22:42:34 +0200
commitd8e23bb0847d766d7f3fdf8bdd11f7d70829fad8 (patch)
tree76e41872d9bf93f03cc45549021c6988538f5f67 /ListItem.c
parent9e67b6585ec42d16fd73a4f2df372f54f1188a32 (diff)
remove UTF-8 code when compiling with --disable-unicode
Diffstat (limited to 'ListItem.c')
-rw-r--r--ListItem.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ListItem.c b/ListItem.c
index 68fd9ffe..07788e73 100644
--- a/ListItem.c
+++ b/ListItem.c
@@ -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);
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy