Commit fa113341 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(read_char_x_menu_prompt): Use an equivalent but more meaningful test.

(read_char_minibuf_menu_prompt): Fix typo.
parent 95673002
......@@ -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. */
......
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