aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy <[email protected]>1993-04-10 07:45:07 +0000
committerJim Blandy <[email protected]>1993-04-10 07:45:07 +0000
commit4bafa97229e4aa48955c00af95dcb85f66cff609 (patch)
tree31198016b2599cd6fe9cb41bf8c3acfed0e12c73
parent9a5336ae36b3bd09c38aef61e8188e09172d3885 (diff)
* keyboard.c (echo_dash): Do nothing if echoptr is 0.
-rw-r--r--src/keyboard.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 8f4b9b4425..aa8a5e0546 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -521,6 +521,9 @@ echo_dash ()
{
if (!immediate_echo && echoptr == echobuf)
return;
+ /* Do nothing if not echoing at all. */
+ if (echoptr == 0)
+ return;
/* Put a dash at the end of the buffer temporarily,
but make it go away when the next character is added. */