build: fix compilation when configured with --disable-utf8

master
Benno Schulenberg 2019-03-15 16:41:02 +01:00
parent 47f3dc75d8
commit 513d2ae905
1 changed files with 2 additions and 0 deletions

View File

@ -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] = ' ';