diff --git a/src/winio.c b/src/winio.c
index f9b88280cee99581e364f3b3b8dc8b5ead033bdc..ad7dbf50106db83b1f48a4f58540aeca6544d325 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -1110,8 +1110,11 @@ int parse_escape_sequence(WINDOW *win, int kbinput)
 	    /* TRANSLATORS: This refers to a sequence of escape codes
 	     * (from the keyboard) that nano does not know about. */
 	    statusbar(_("Unknown sequence"));
-	    reset_cursor();
-	    curs_set(1);
+	    suppress_cursorpos = FALSE;
+	    if (currmenu == MMAIN) {
+		reset_cursor();
+		curs_set(1);
+	    }
 	    beep();
 	}
     }