From 17e79c01575b26e28e5f978d99cff250a6d9e63b Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Wed, 3 May 2000 13:05:39 +0000 Subject: fix for the (z) flag: report partial word (like `"foo', without a closing quote); mention in manual that (z) is handled lately (11117) --- Src/hist.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Src/hist.c') 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; -- cgit v1.2.3