From 16482f99b88f44fa966d2246eaf498ae82c10ed6 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@justemail.net>
Date: Sun, 4 Jun 2017 12:15:26 +0200
Subject: [PATCH] tweaks: unglobalize the nodelay_mode variable

---
 src/global.c | 3 ---
 src/proto.h  | 2 --
 src/winio.c  | 2 ++
 3 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/global.c b/src/global.c
index 814ddeb4..4f146043 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 7e9af637..2d269992 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 1c4aa2bc..ded81ad6 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
-- 
GitLab