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.
master
Benno Schulenberg 2017-02-26 18:29:18 +01:00
parent 2e53ed2928
commit efdd73922e
1 changed files with 1 additions and 1 deletions

View File

@ -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"). */ * and put the cursor in the edit window at (current_y, "current_x"). */
void reset_cursor(void) void reset_cursor(void)
{ {
ssize_t row; ssize_t row = 0;
size_t col, xpt = xplustabs(); size_t col, xpt = xplustabs();
#ifndef NANO_TINY #ifndef NANO_TINY