tweaks: add an error message for something that should never occur
parent
3c177c1bb9
commit
6ae11071b3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue