nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 048ab0ee0be80bd5c0f3af21f9529d11cc6e6914
parent 16dff06a4c88ca8bd9273f59c63fed89f6bb8242
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri,  4 Dec 2020 16:30:28 +0100

tweaks: reduce the scope of a static variable

Diffstat:
Msrc/winio.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/winio.c b/src/winio.c @@ -46,8 +46,6 @@ static int *key_buffer = NULL; /* A buffer for the keystrokes that haven't been handled yet. */ 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 int digit_count = 0; /* How many digits of a three-digit character code we've eaten. */ static bool reveal_cursor = FALSE; @@ -891,6 +889,7 @@ int convert_to_control(int kbinput) * the function keys (F1-F12), and the numeric keypad with NumLock off. */ int parse_kbinput(WINDOW *win) { + static bool solitary = FALSE; static int escapes = 0; int keycode;