commit 61e8b3d5424f8ce5d780a8b027096240cab572e9
parent de36e1c120d0ff5a0bf1b00a91a19cd0eff19858
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Fri, 17 Feb 2017 01:39:45 -0600
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.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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)) {