display: show "[" for half of two-column character also when softwrapping

This should have been part of commit ad505e7f.
master
Benno Schulenberg 2019-02-24 21:30:53 +01:00
parent 79ca3ceabf
commit 1eb639d55e
1 changed files with 3 additions and 4 deletions

View File

@ -2849,11 +2849,10 @@ int update_softwrapped_line(filestruct *fileptr)
if (end_of_line)
break;
/* If the line is softwrapped before its last column, add a ">" just
* after its softwrap breakpoint, unless we're softwrapping at blanks
* and not in the middle of a word. */
/* If the line is softwrapped early (because of a two-column character),
* show a "[" placeholder, unless we're softwrapping at blanks. */
if (!ISSET(AT_BLANKS) && to_col - from_col < editwincols)
mvwaddch(edit, row - 1, to_col - from_col, '>');
mvwaddch(edit, row - 1, to_col - from_col, '[');
from_col = to_col;
}