diff options
| author | Stefan Monnier | 2002-05-15 22:34:57 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2002-05-15 22:34:57 +0000 |
| commit | fa11334196813a6bf1f87c4df26222a5e4926aaf (patch) | |
| tree | 8e7bc1bda2c1e1dcab40d9c157318e29d94e6202 /src | |
| parent | 9567300236a2e39b616497e4dcf2450dda52bc70 (diff) | |
| download | emacs-fa11334196813a6bf1f87c4df26222a5e4926aaf.tar.gz emacs-fa11334196813a6bf1f87c4df26222a5e4926aaf.zip | |
(read_char_x_menu_prompt): Use an equivalent but more meaningful test.
(read_char_minibuf_menu_prompt): Fix typo.
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. */ |