commit 16482f99b88f44fa966d2246eaf498ae82c10ed6
parent 621eb904b3ede30adb56968000b169697f759b76
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Sun, 4 Jun 2017 12:15:26 +0200
tweaks: unglobalize the nodelay_mode variable
Diffstat:
3 files changed, 2 insertions(+), 5 deletions(-)
diff --git 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
@@ -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
@@ -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