From efdd73922ef7b6fc001b908896bc7dba367b89ca Mon Sep 17 00:00:00 2001 From: Benno Schulenberg <bensberg@justemail.net> Date: Sun, 26 Feb 2017 18:29:18 +0100 Subject: [PATCH] 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. --- src/winio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/winio.c b/src/winio.c index b04b51c6..b08ae88a 100644 --- 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 -- GitLab