# HG changeset patch # User Stefan Monnier # Date 1021502097 0 # Node ID 472f06c53d46663e8ca72569002e74194452220d # Parent 105aeedf106ce26acba64ee02da19ce708ab4c36 (read_char_x_menu_prompt): Use an equivalent but more meaningful test. (read_char_minibuf_menu_prompt): Fix typo. diff -r 105aeedf106c -r 472f06c53d46 src/keyboard.c --- a/src/keyboard.c Wed May 15 22:14:16 2002 +0000 +++ b/src/keyboard.c Wed May 15 22:34:57 2002 +0000 @@ -7528,7 +7528,7 @@ } /* 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 @@ } /* 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. */