summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2014-08-30 14:09:23 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2014-08-30 14:09:23 -0700
commite01739d2b73153823cb5689ec787202f4d321e2c (patch)
treea2d5e5d95c7367ff2e5f633df99acd53e89879d1 /Completion
parent711e1427b5eb80104b4d6ad1504f43ea958970d8 (diff)
downloadzsh-e01739d2b73153823cb5689ec787202f4d321e2c.tar.gz
zsh-e01739d2b73153823cb5689ec787202f4d321e2c.tar.xz
zsh-e01739d2b73153823cb5689ec787202f4d321e2c.zip
33069: remove internal quoting before lookup when expanding aliases in an unquoted word
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Base/Completer/_expand_alias2
1 files changed, 2 insertions, 0 deletions
diff --git a/Completion/Base/Completer/_expand_alias b/Completion/Base/Completer/_expand_alias
index 8240e4162..9064ce830 100644
--- a/Completion/Base/Completer/_expand_alias
+++ b/Completion/Base/Completer/_expand_alias
@@ -25,6 +25,8 @@ else
   pre=(_main_complete - aliases)
 fi
 
+[[ "$compstate[quoting]" = (single|double) ]] || word="${(Q)word}"
+
 zstyle -s ":completion:${curcontext}:" regular tmp || tmp=yes
 case $tmp in
 always) sel=r;;