about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2002-03-07 08:38:44 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2002-03-07 08:38:44 +0000
commit6bfc325a94de11952079c703d7fc23efa7d14241 (patch)
treeee079258b58cb5761e1ea202a8f5ff52578474d9 /Src/Zle
parent179006f49515992aafb7312780adb41dd2ada9e5 (diff)
downloadzsh-6bfc325a94de11952079c703d7fc23efa7d14241.tar.gz
zsh-6bfc325a94de11952079c703d7fc23efa7d14241.tar.xz
zsh-6bfc325a94de11952079c703d7fc23efa7d14241.zip
don't try to build the redirection string for the loops (for, foreach, select) (16776)
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/zle_tricky.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c
index 788f5f8ec..43d234843 100644
--- a/Src/Zle/zle_tricky.c
+++ b/Src/Zle/zle_tricky.c
@@ -1086,7 +1086,7 @@ get_comp_string(void)
 	    else
 		linarr = 0;
 	}
-	if (inredir) {
+	if (inredir && IS_REDIROP(tok)) {
             rdstr = rdstrbuf;
             if (tokfd >= 0)
                 sprintf(rdop, "%d%s", tokfd, tokstrings[tok]);