summary refs log tree commit diff
path: root/Src/Zle/zle_tricky.c
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2015-08-26 22:16:12 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2015-08-26 22:16:12 -0700
commit85645fd683761090e55b9979cd3a4115dfec23c8 (patch)
treed29dcd19e02fc165425d904b886de9eb3232d27f /Src/Zle/zle_tricky.c
parent8186e9c94b6536b7e9ed8b40c467922c8d639f6d (diff)
downloadzsh-85645fd683761090e55b9979cd3a4115dfec23c8.tar.gz
zsh-85645fd683761090e55b9979cd3a4115dfec23c8.tar.xz
zsh-85645fd683761090e55b9979cd3a4115dfec23c8.zip
36288: refine 36825, slightly different test for redirect context
Diffstat (limited to 'Src/Zle/zle_tricky.c')
-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 cb17bdeca..97bdcc020 100644
--- a/Src/Zle/zle_tricky.c
+++ b/Src/Zle/zle_tricky.c
@@ -1185,7 +1185,7 @@ get_comp_string(void)
 	 * relatively harmless by itself, it's probably incomplete.
 	 */
 	linredir = (inredir && !ins);
-	lincmd = !linredir &&
+	lincmd = !inredir &&
 	    ((incmdpos && !ins && !incond) ||
 	     (oins == 2 && wordpos == 2) ||
 	     (ins == 3 && wordpos == 1) ||