From fa11334196813a6bf1f87c4df26222a5e4926aaf Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 15 May 2002 22:34:57 +0000 Subject: [PATCH] (read_char_x_menu_prompt): Use an equivalent but more meaningful test. (read_char_minibuf_menu_prompt): Fix typo. --- src/keyboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/keyboard.c b/src/keyboard.c index 90b83560cf8..63df3408b7b 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -7528,7 +7528,7 @@ read_char_x_menu_prompt (nmaps, maps, prev_event, used_mouse_menu) } /* If we don't have any menus, just read a character normally. */ - if (mapno >= nmaps) + if (!STRINGP (name)) return Qnil; #ifdef HAVE_MENUS @@ -7639,7 +7639,7 @@ read_char_minibuf_menu_prompt (commandflag, nmaps, maps) } /* If we don't have any menus, just read a character normally. */ - if (!STRINGP (name)); + if (!STRINGP (name)) return Qnil; /* Prompt string always starts with map's prompt, and a space. */ -- 2.39.5