From 513d2ae9058a4f4e1b1c6b628442e51dc4b44b10 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Fri, 15 Mar 2019 16:41:02 +0100 Subject: [PATCH] build: fix compilation when configured with --disable-utf8 --- src/winio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/winio.c b/src/winio.c index 4589164b..86c27c77 100644 --- 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] = ' ';