diff options
author | Peter Stephenson <pws@zsh.org> | 2018-01-08 17:25:04 +0000 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2018-01-08 17:26:33 +0000 |
commit | 36fcaeb16799738631d4519e74d2e6398478776d (patch) | |
tree | 89fbcdf5ab344050e575cc5000ec7df68435e453 /Src/lex.c | |
parent | 0f0b602415961aa9ca069c9719a0fbb4bbb9941f (diff) | |
download | zsh-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.c | 2 |
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); |