nano

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

commit eb88ad980af316ff4b8a70d50b50e64717a2abb6
parent 9fa95a3680933e1706392508a43f2d839c1831d8
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Thu, 15 Dec 2016 13:15:46 +0100

tweaks: use a slightly faster comparison

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

diff --git a/src/winio.c b/src/winio.c @@ -2323,7 +2323,7 @@ void edit_draw(filestruct *fileptr, const char *converted, int if (margin > 0) { wattron(edit, interface_color_pair[LINE_NUMBER]); #ifndef NANO_TINY - if (ISSET(SOFTWRAP) && (startpos / editwincols > 0)) + if (ISSET(SOFTWRAP) && startpos >= editwincols) mvwprintw(edit, line, 0, "%*s", margin - 1, " "); else #endif