summary refs log tree commit diff
path: root/Src/hist.c
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-07-13 12:28:12 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-07-13 12:28:12 +0000
commit0982f4ee6435d3b5ad6bcdf131405e90211dc5bf (patch)
treeb3d7901cb60e06fabf14f9fa1b9a207d527c39c0 /Src/hist.c
parentfa699be45debba815ea5e3ed5bfebde280d894a0 (diff)
downloadzsh-0982f4ee6435d3b5ad6bcdf131405e90211dc5bf.tar.gz
zsh-0982f4ee6435d3b5ad6bcdf131405e90211dc5bf.tar.xz
zsh-0982f4ee6435d3b5ad6bcdf131405e90211dc5bf.zip
condition parsing with (z) flag
Diffstat (limited to 'Src/hist.c')
-rw-r--r--Src/hist.c4
1 files changed, 4 insertions, 0 deletions
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;