about summary refs log tree commit diff
path: root/Src/lex.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2018-01-08 17:25:04 +0000
committerPeter Stephenson <pws@zsh.org>2018-01-08 17:26:33 +0000
commit36fcaeb16799738631d4519e74d2e6398478776d (patch)
tree89fbcdf5ab344050e575cc5000ec7df68435e453 /Src/lex.c
parent0f0b602415961aa9ca069c9719a0fbb4bbb9941f (diff)
downloadzsh-36fcaeb16799738631d4519e74d2e6398478776d.tar.gz
zsh-36fcaeb16799738631d4519e74d2e6398478776d.tar.xz
zsh-36fcaeb16799738631d4519e74d2e6398478776d.zip
42245: Abort last word on interactve comment.
Last recorded word should be the previous one.
Diffstat (limited to 'Src/lex.c')
-rw-r--r--Src/lex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/lex.c b/Src/lex.c
index c2a59661c..2379804f2 100644
--- a/Src/lex.c
+++ b/Src/lex.c
@@ -677,7 +677,7 @@ gettok(void)
 		(char *)hcalloc(lexbuf.siz = LEX_HEAP_SIZE);
 	    add(c);
 	}
-	hwend();
+	hwabort();
 	while ((c = ingetc()) != '\n' && !lexstop) {
 	    hwaddc(c);
 	    addtoline(c);