about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-22 13:14:27 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-22 13:14:27 +0000
commitfc09801d93a5388b9a7aaba3f48c41f9fbe9cab8 (patch)
tree2e7b79605e529bf630ed7abecdb724bed728c334
parenta8ed82946e42ee1b98d05748a684c8522cfab40b (diff)
downloadzsh-fc09801d93a5388b9a7aaba3f48c41f9fbe9cab8.tar.gz
zsh-fc09801d93a5388b9a7aaba3f48c41f9fbe9cab8.tar.xz
zsh-fc09801d93a5388b9a7aaba3f48c41f9fbe9cab8.zip
zsh-workers/7983
-rw-r--r--Src/hist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/hist.c b/Src/hist.c
index fcd5d877a..089c9f0bd 100644
--- a/Src/hist.c
+++ b/Src/hist.c
@@ -642,7 +642,7 @@ ihungetc(int c)
 {
     int doit = 1;
 
-    while (!lexstop) {
+    while (!lexstop && !errflag) {
 	if (hptr[-1] != (char) c && stophist < 4 &&
 	    hptr > chline + 1 && hptr[-1] == '\n' && hptr[-2] == '\\')
 	    hungetc('\n'), hungetc('\\');