diff --git a/src/winio.c b/src/winio.c
index f0e9eb2760f1dab189444b5d4f9ad22ed3e00fa8..1ccb947aec39ec0f454541bec191c9af4e6848e4 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -525,7 +525,7 @@ int parse_kbinput(WINDOW *win, bool *meta_key, bool *func_key)
 
 			/* If the escape sequence is unrecognized and
 			 * not ignored, throw it out. */
-			if (retval == ERR && *ignore_seq == FALSE) {
+			if (retval == ERR && !ignore_seq) {
 			    if (win == edit)
 				statusbar(_("Unknown Command"));
 			    beep();