diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index aaeeeade541..897f691a5e9 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -790,6 +790,8 @@ echo_char (c) | |||
| 790 | else | 790 | else |
| 791 | echo_string = concat2 (echo_string, build_string (" ")); | 791 | echo_string = concat2 (echo_string, build_string (" ")); |
| 792 | } | 792 | } |
| 793 | else if (STRINGP (echo_string)) | ||
| 794 | echo_string = concat2 (echo_string, build_string (" ")); | ||
| 793 | 795 | ||
| 794 | current_kboard->echo_string | 796 | current_kboard->echo_string |
| 795 | = concat2 (echo_string, make_string (buffer, ptr - buffer)); | 797 | = concat2 (echo_string, make_string (buffer, ptr - buffer)); |
| @@ -820,16 +822,16 @@ echo_dash () | |||
| 820 | /* Do nothing if we have already put a dash at the end. */ | 822 | /* Do nothing if we have already put a dash at the end. */ |
| 821 | if (SCHARS (current_kboard->echo_string) > 1) | 823 | if (SCHARS (current_kboard->echo_string) > 1) |
| 822 | { | 824 | { |
| 823 | Lisp_Object last_char, prev_char, idx; | 825 | Lisp_Object last_char, prev_char, idx; |
| 824 | 826 | ||
| 825 | idx = make_number (SCHARS (current_kboard->echo_string) - 2); | 827 | idx = make_number (SCHARS (current_kboard->echo_string) - 2); |
| 826 | prev_char = Faref (current_kboard->echo_string, idx); | 828 | prev_char = Faref (current_kboard->echo_string, idx); |
| 827 | 829 | ||
| 828 | idx = make_number (SCHARS (current_kboard->echo_string) - 1); | 830 | idx = make_number (SCHARS (current_kboard->echo_string) - 1); |
| 829 | last_char = Faref (current_kboard->echo_string, idx); | 831 | last_char = Faref (current_kboard->echo_string, idx); |
| 830 | 832 | ||
| 831 | if (XINT (last_char) == '-' && XINT (prev_char) != ' ') | 833 | if (XINT (last_char) == '-' && XINT (prev_char) != ' ') |
| 832 | return; | 834 | return; |
| 833 | } | 835 | } |
| 834 | 836 | ||
| 835 | /* Put a dash at the end of the buffer temporarily, | 837 | /* Put a dash at the end of the buffer temporarily, |