summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Src/hist.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 00dd78a7f..6f1c4b2f4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,9 @@
escapes count from the other end of the appropriate string.
2000-07-13 Sven Wischnowsky <wischnow@zsh.org>
+
+ * 12243: Src/hist.c: try to get (z) parameter flag parsing for
+ conditions right
* 12241: Completion/Core/_main_complete, Src/Zle/computil.c: fix
for _arguments with single-letter options: recognize
diff --git a/Src/hist.c b/Src/hist.c
index 4a7a0fa58..df4afd0c5 100644
--- a/Src/hist.c
+++ b/Src/hist.c
@@ -2099,6 +2099,10 @@ bufferwords(LinkList list, char *buf, int *index)
strinbeg(0);
noaliases = 1;
do {
+ if (incond)
+ incond = 1 + (tok != DINBRACK && tok != INPAR &&
+ tok != DBAR && tok != DAMPER &&
+ tok != BANG);
ctxtlex();
if (tok == ENDINPUT || tok == LEXERR)
break;