nano

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

commit 26fb907aa654b9709216c54193d9e7572e36472f
parent ea407659042880bee65b3dca2ca77d5eb364bffa
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Thu, 12 Jan 2017 10:18:56 +0100

screen: ehm... no, that was wrong: page_start /is/ a column position

(The mistake becomes visible when you go to the end of a very long line
of double-width characters: the $ will be shown on the right edge, even
though you're already at line's end.)

This reverts commit 16a7fd4b from yesterday.

Diffstat:
Msrc/winio.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/winio.c b/src/winio.c @@ -2711,7 +2711,7 @@ int update_line(filestruct *fileptr, size_t index) #endif if (page_start > 0) mvwaddch(edit, line, margin, '$'); - if (strlenpt(fileptr->data + page_start) > editwincols) + if (strlenpt(fileptr->data) > page_start + editwincols) mvwaddch(edit, line, COLS - 1, '$'); #ifndef NANO_TINY } else {