diff --git a/src/global.c b/src/global.c
index 814ddeb4312ffc98a65029a74116a5e22898e437..4f1460439ed3893f7978fe37c0fc148d19da0e92 100644
--- a/src/global.c
+++ b/src/global.c
@@ -149,9 +149,6 @@ char *quoteerr = NULL;
 char *word_chars = NULL;
 	/* Nonalphanumeric characters that also form words. */
 
-bool nodelay_mode = FALSE;
-	/* Are we checking for a cancel wile doing something? */
-
 char *answer = NULL;
 	/* The answer string used by the statusbar prompt. */
 
diff --git a/src/proto.h b/src/proto.h
index 7e9af6372bfc2c45414c4de11418b0887d9ef184..2d26999266f697ab80948003b421a62b198b49f8 100644
--- a/src/proto.h
+++ b/src/proto.h
@@ -121,8 +121,6 @@ extern char *quoteerr;
 
 extern char *word_chars;
 
-extern bool nodelay_mode;
-
 extern char *answer;
 
 extern ssize_t tabsize;
diff --git a/src/winio.c b/src/winio.c
index 1c4aa2bc3ba0b5359ec77109547a25ac200389fe..ded81ad6b886a6d392c80fbbf78b83b9fe733259 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -45,6 +45,8 @@ static size_t key_buffer_len = 0;
 	/* The length of the keystroke buffer. */
 static bool solitary = FALSE;
 	/* Whether an Esc arrived by itself -- not as leader of a sequence. */
+static nodelay_mode = FALSE;
+	/* Whether we will check for a Cancel now and then during a search. */
 static int statusblank = 0;
 	/* The number of keystrokes left before we blank the statusbar. */
 #ifdef USING_OLD_NCURSES