commit 513d2ae9058a4f4e1b1c6b628442e51dc4b44b10
parent 47f3dc75d8093fedee0a1150948902de8ec8d30c
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Fri, 15 Mar 2019 16:41:02 +0100
build: fix compilation when configured with --disable-utf8
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/winio.c b/src/winio.c
@@ -2698,11 +2698,13 @@ void edit_draw(filestruct *fileptr, const char *converted,
target_column = strnlenpt(converted, target_x);
} else if (target_column + 1 == editwincols) {
/* Defeat a VTE bug -- see https://sv.gnu.org/bugs/?55896. */
+#ifdef ENABLE_UTF8
if (using_utf8()) {
striped_char[0] = '\xC2';
striped_char[1] = '\xA0';
charlen = 2;
} else
+#endif
striped_char[0] = '.';
} else
striped_char[0] = ' ';