about summary refs log tree commit diff
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
parentfa699be45debba815ea5e3ed5bfebde280d894a0 (diff)
downloadzsh-0982f4ee6435d3b5ad6bcdf131405e90211dc5bf.tar.gz
zsh-0982f4ee6435d3b5ad6bcdf131405e90211dc5bf.tar.xz
zsh-0982f4ee6435d3b5ad6bcdf131405e90211dc5bf.zip
condition parsing with (z) flag
-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;