From a53712bb71c973754e1f341b65c9187b3225ee87 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Fri, 2 Mar 2001 23:04:52 +0000 Subject: [PATCH] * key.c (mi_getch): Discard non-events (EV_NONE), but not keycode 0 (Ctrl-@). --- src/ChangeLog | 5 +++++ src/key.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 787be8780..bc64eecb5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-03-02 Pavel Roskin + + * key.c (mi_getch): Discard non-events (EV_NONE), but not + keycode 0 (Ctrl-@). + 2001-02-26 Pavel Roskin * cmd.c (edit_cmd) [HAVE_GNOME]: Use gmc_edit(). Don't use diff --git a/src/key.c b/src/key.c index 24403be0c..9f7ac0f62 100644 --- a/src/key.c +++ b/src/key.c @@ -832,7 +832,7 @@ int mi_getch () int key; ev.x = -1; - while ((key = get_event (&ev, 0, 1)) == 0) + while ((key = get_event (&ev, 0, 1)) == EV_NONE) ; return key; }