nano

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

commit 16a7fd4bfc7858500f6fc549e35809d67e31dae7
parent eca6faee5bccdd8058455020bd7445038226f4aa
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Wed, 11 Jan 2017 17:22:46 +0100

screen: don't compare a character index with a column position

This addresses part of https://savannah.gnu.org/patch/?9216.
Reported-by: David Lawrence Ramsey <pooka109@gmail.com>

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 {