diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 8f4b9b4425f..aa8a5e05467 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -521,6 +521,9 @@ echo_dash () | |||
| 521 | { | 521 | { |
| 522 | if (!immediate_echo && echoptr == echobuf) | 522 | if (!immediate_echo && echoptr == echobuf) |
| 523 | return; | 523 | return; |
| 524 | /* Do nothing if not echoing at all. */ | ||
| 525 | if (echoptr == 0) | ||
| 526 | return; | ||
| 524 | 527 | ||
| 525 | /* Put a dash at the end of the buffer temporarily, | 528 | /* Put a dash at the end of the buffer temporarily, |
| 526 | but make it go away when the next character is added. */ | 529 | but make it go away when the next character is added. */ |