diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 6c664169f03..a222a026723 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -35,6 +35,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 35 | #include "disptab.h" | 35 | #include "disptab.h" |
| 36 | #include "dispextern.h" | 36 | #include "dispextern.h" |
| 37 | #include "keyboard.h" | 37 | #include "keyboard.h" |
| 38 | #include "intervals.h" | ||
| 38 | #include <setjmp.h> | 39 | #include <setjmp.h> |
| 39 | #include <errno.h> | 40 | #include <errno.h> |
| 40 | 41 | ||
| @@ -3223,7 +3224,11 @@ read_key_sequence (keybuf, bufsize, prompt) | |||
| 3223 | nmaps_allocated = nmaps; | 3224 | nmaps_allocated = nmaps; |
| 3224 | } | 3225 | } |
| 3225 | bcopy (maps, submaps, (nmaps - 2) * sizeof (submaps[0])); | 3226 | bcopy (maps, submaps, (nmaps - 2) * sizeof (submaps[0])); |
| 3226 | submaps[nmaps-2] = current_buffer->keymap; | 3227 | #ifdef USE_TEXT_PROPERTIES |
| 3228 | submaps[nmaps-2] = get_local_map (PT, current_buffer); | ||
| 3229 | #else | ||
| 3230 | submaps[nmaps-2] = current_buffer->local_map; | ||
| 3231 | #endif | ||
| 3227 | submaps[nmaps-1] = global_map; | 3232 | submaps[nmaps-1] = global_map; |
| 3228 | } | 3233 | } |
| 3229 | 3234 | ||