diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 4 |
1 files 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) | |||
| 7528 | } | 7528 | } |
| 7529 | 7529 | ||
| 7530 | /* If we don't have any menus, just read a character normally. */ | 7530 | /* If we don't have any menus, just read a character normally. */ |
| 7531 | if (mapno >= nmaps) | 7531 | if (!STRINGP (name)) |
| 7532 | return Qnil; | 7532 | return Qnil; |
| 7533 | 7533 | ||
| 7534 | #ifdef HAVE_MENUS | 7534 | #ifdef HAVE_MENUS |
| @@ -7639,7 +7639,7 @@ read_char_minibuf_menu_prompt (commandflag, nmaps, maps) | |||
| 7639 | } | 7639 | } |
| 7640 | 7640 | ||
| 7641 | /* If we don't have any menus, just read a character normally. */ | 7641 | /* If we don't have any menus, just read a character normally. */ |
| 7642 | if (!STRINGP (name)); | 7642 | if (!STRINGP (name)) |
| 7643 | return Qnil; | 7643 | return Qnil; |
| 7644 | 7644 | ||
| 7645 | /* Prompt string always starts with map's prompt, and a space. */ | 7645 | /* Prompt string always starts with map's prompt, and a space. */ |