From 61e8b3d5424f8ce5d780a8b027096240cab572e9 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Fri, 17 Feb 2017 01:39:45 -0600 Subject: [PATCH] screen: don't hide two-column characters at left edge in softwrap mode When in softwrap mode, no "$" continuation characters are displayed, so the code that reserves space for them should be skipped then. This fixes https://savannah.gnu.org/bugs/?50335. --- src/winio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/winio.c b/src/winio.c index c304bcba..c12966f2 100644 --- a/src/winio.c +++ b/src/winio.c @@ -1833,7 +1833,7 @@ char *display_string(const char *buf, size_t start_col, size_t span, buf += start_index; if (*buf != '\0' && *buf != '\t' && - (column < start_col || (isdata && column > 0))) { + (column < start_col || (isdata && !ISSET(SOFTWRAP) && column > 0))) { /* We don't display the complete first character as it starts to * the left of the screen. */ if (is_cntrl_mbchar(buf)) {