"git@gitlab.caltech.edu:cs24-19fa/git_rec_nano.git" did not exist on "03783a7d1bfb96adda5bd60a188ac6411c133ad2"
Commit db310ac9 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

input: ignore the resize "key", to prevent reporting an unbound key

In the tiny version it would beep and report an unbound key for every
window resize.
No related merge requests found
Showing with 7 additions and 3 deletions
+7 -3
......@@ -305,11 +305,15 @@ int *get_input(WINDOW *win, size_t input_len)
/* Read in a single keystroke, ignoring any that are invalid. */
int get_kbinput(WINDOW *win)
{
int kbinput;
int kbinput = ERR;
/* Extract one keystroke from the input stream. */
while ((kbinput = parse_kbinput(win)) == ERR)
;
#ifdef KEY_RESIZE
while (kbinput == ERR || kbinput == KEY_RESIZE)
#else
while (kbinput == ERR)
#endif
kbinput = parse_kbinput(win);
#ifdef DEBUG
fprintf(stderr, "after parsing: kbinput = %d, meta_key = %s\n",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment