tweaks: include an extra function call only where it is needed
And fix a typo.
Этот коммит содержится в:
родитель
9d9ae8dc76
Коммит
9923b073af
@ -1330,13 +1330,15 @@ int parse_escape_sequence(WINDOW *win, int kbinput)
|
|||||||
/* If we got an unrecognized escape sequence, notify the user. */
|
/* If we got an unrecognized escape sequence, notify the user. */
|
||||||
if (retval == ERR && win == edit) {
|
if (retval == ERR && win == edit) {
|
||||||
/* TRANSLATORS: This refers to a sequence of escape codes
|
/* TRANSLATORS: This refers to a sequence of escape codes
|
||||||
* (from the keyboard) that nano does not recogize. */
|
* (from the keyboard) that nano does not recognize. */
|
||||||
statusline(ALERT, _("Unknown sequence"));
|
statusline(ALERT, _("Unknown sequence"));
|
||||||
suppress_cursorpos = FALSE;
|
suppress_cursorpos = FALSE;
|
||||||
lastmessage = HUSH;
|
lastmessage = HUSH;
|
||||||
if (currmenu == MMAIN) {
|
if (currmenu == MMAIN) {
|
||||||
place_the_cursor();
|
place_the_cursor();
|
||||||
|
#ifdef __NetBSD__
|
||||||
wnoutrefresh(edit); /* Needed for correct placement on NetBSD. */
|
wnoutrefresh(edit); /* Needed for correct placement on NetBSD. */
|
||||||
|
#endif
|
||||||
curs_set(1);
|
curs_set(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user