nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 1eb639d55e4986469a7b7e42758b95d87d93d87b
parent 79ca3ceabf8ef087570bfaf5e5ec52af3b4f1295
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 24 Feb 2019 21:30:53 +0100

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

This should have been part of commit ad505e7f.

Diffstat:
Msrc/winio.c | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/winio.c b/src/winio.c @@ -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; }