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; }