diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/keymap.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/keymap.c b/src/keymap.c index 8f4ac0dd437..b69b409fc2d 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -1652,10 +1652,14 @@ specified buffer position instead of point are used. | |||
| 1652 | 1652 | ||
| 1653 | if (NILP (position) && VECTORP (key)) | 1653 | if (NILP (position) && VECTORP (key)) |
| 1654 | { | 1654 | { |
| 1655 | Lisp_Object event | 1655 | Lisp_Object event; |
| 1656 | /* mouse events may have a symbolic prefix indicating the | 1656 | |
| 1657 | scrollbar or mode line */ | 1657 | if (ASIZE (key) == 0) |
| 1658 | = AREF (key, SYMBOLP (AREF (key, 0)) && ASIZE (key) > 1 ? 1 : 0); | 1658 | return Qnil; |
| 1659 | |||
| 1660 | /* mouse events may have a symbolic prefix indicating the | ||
| 1661 | scrollbar or mode line */ | ||
| 1662 | event = AREF (key, SYMBOLP (AREF (key, 0)) && ASIZE (key) > 1 ? 1 : 0); | ||
| 1659 | 1663 | ||
| 1660 | /* We are not interested in locations without event data */ | 1664 | /* We are not interested in locations without event data */ |
| 1661 | 1665 | ||