tweaks: include an extra function call only where it is needed

And fix a typo.
master
Benno Schulenberg 2018-11-05 10:21:17 +01:00
parent 9d9ae8dc76
commit 9923b073af
1 changed files with 3 additions and 1 deletions

View File

@ -1330,13 +1330,15 @@ int parse_escape_sequence(WINDOW *win, int kbinput)
/* If we got an unrecognized escape sequence, notify the user. */
if (retval == ERR && win == edit) {
/* 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"));
suppress_cursorpos = FALSE;
lastmessage = HUSH;
if (currmenu == MMAIN) {
place_the_cursor();
#ifdef __NetBSD__
wnoutrefresh(edit); /* Needed for correct placement on NetBSD. */
#endif
curs_set(1);
}
}