nano

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

commit efdd73922ef7b6fc001b908896bc7dba367b89ca
parent 2e53ed2928f7938479634f82e62e21b44146a977
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Sun, 26 Feb 2017 18:29:18 +0100

oops -- that's what you get when you don't test things before pushing

Of course 'row' needs to be initialized to zero for the softwrap case.

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

diff --git a/src/winio.c b/src/winio.c @@ -2269,7 +2269,7 @@ void onekey(const char *keystroke, const char *desc, int length) * and put the cursor in the edit window at (current_y, "current_x"). */ void reset_cursor(void) { - ssize_t row; + ssize_t row = 0; size_t col, xpt = xplustabs(); #ifndef NANO_TINY