tweaks: reduce the scope of a static variable
parent
16dff06a4c
commit
048ab0ee0b
|
@ -46,8 +46,6 @@ static int *key_buffer = NULL;
|
||||||
/* A buffer for the keystrokes that haven't been handled yet. */
|
/* A buffer for the keystrokes that haven't been handled yet. */
|
||||||
static size_t key_buffer_len = 0;
|
static size_t key_buffer_len = 0;
|
||||||
/* The length of the keystroke buffer. */
|
/* 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;
|
static int digit_count = 0;
|
||||||
/* How many digits of a three-digit character code we've eaten. */
|
/* How many digits of a three-digit character code we've eaten. */
|
||||||
static bool reveal_cursor = FALSE;
|
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. */
|
* the function keys (F1-F12), and the numeric keypad with NumLock off. */
|
||||||
int parse_kbinput(WINDOW *win)
|
int parse_kbinput(WINDOW *win)
|
||||||
{
|
{
|
||||||
|
static bool solitary = FALSE;
|
||||||
static int escapes = 0;
|
static int escapes = 0;
|
||||||
int keycode;
|
int keycode;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue