about summary refs log tree commit diff
path: root/Src/hist.c
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-03 13:05:39 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-03 13:05:39 +0000
commit17e79c01575b26e28e5f978d99cff250a6d9e63b (patch)
tree0c5a6ae7de20b12d9fbe63d6370fe8c07f1d6452 /Src/hist.c
parentcdbbb405de3a179e70ad6e9d5e324c6c6f5d04e8 (diff)
downloadzsh-17e79c01575b26e28e5f978d99cff250a6d9e63b.tar.gz
zsh-17e79c01575b26e28e5f978d99cff250a6d9e63b.tar.xz
zsh-17e79c01575b26e28e5f978d99cff250a6d9e63b.zip
fix for the (z) flag: report partial word (like `"foo', without a closing quote); mention in manual that (z) is handled lately (11117)
Diffstat (limited to 'Src/hist.c')
-rw-r--r--Src/hist.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Src/hist.c b/Src/hist.c
index 3dde19845..e869e3a2e 100644
--- a/Src/hist.c
+++ b/Src/hist.c
@@ -2102,6 +2102,11 @@ bufferwords(LinkList list, char *buf, int *index)
 	    cur = num - 1;
 	}
     } while (tok != ENDINPUT && tok != LEXERR);
+    if (buf && tok == LEXERR && tokstr && *tokstr) {
+	untokenize((p = dupstring(tokstr)));
+	addlinknode(list, p);
+	num++;
+    }
     if (cur < 0 && num)
 	cur = num - 1;
     noaliases = 0;