tweaks: add an error message for something that should never occur

master
Benno Schulenberg 2020-01-27 12:06:27 +01:00
parent 3c177c1bb9
commit 6ae11071b3
1 changed files with 4 additions and 0 deletions

View File

@ -2358,6 +2358,10 @@ void place_the_cursor(void)
if (row < editwinrows)
wmove(edit, row, margin + column);
#ifndef NANO_TINY
else
statusline(ALERT, "Misplaced cursor -- please report a bug");
#endif
openfile->current_y = row;
}