verbatim: with --zero, keep cursor in viewport when it was on bottom row
This fixes https://savannah.gnu.org/bugs/?62285. Bug existed since version 6.0, since --zero was introduced.
Этот коммит содержится в:
родитель
e67d1bfeb8
Коммит
42c7bfcf8a
@ -2997,6 +2997,13 @@ void do_verbatim_input(void)
|
|||||||
size_t count = 1;
|
size_t count = 1;
|
||||||
char *bytes;
|
char *bytes;
|
||||||
|
|
||||||
|
#ifndef NANO_TINY
|
||||||
|
/* When barless and with cursor on bottom row, make room for the feedback. */
|
||||||
|
if (ISSET(ZERO) && openfile->current_y == editwinrows - 1 && LINES > 1) {
|
||||||
|
edit_scroll(FORWARD);
|
||||||
|
edit_refresh();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
/* TRANSLATORS: Shown when the next keystroke will be inserted verbatim. */
|
/* TRANSLATORS: Shown when the next keystroke will be inserted verbatim. */
|
||||||
statusline(INFO, _("Verbatim Input"));
|
statusline(INFO, _("Verbatim Input"));
|
||||||
place_the_cursor();
|
place_the_cursor();
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user