commit 9923b073afa750639c108680d926bac92981d300
parent 9d9ae8dc76c8ecc814d4aeecdbf03bb0f0f5ea62
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Mon, 5 Nov 2018 10:21:17 +0100
tweaks: include an extra function call only where it is needed
And fix a typo.
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/winio.c b/src/winio.c
@@ -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);
}
}