diff options
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Base/Completer/_expand_alias | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Completion/Base/Completer/_expand_alias b/Completion/Base/Completer/_expand_alias index e711338a8..ee361d1bf 100644 --- a/Completion/Base/Completer/_expand_alias +++ b/Completion/Base/Completer/_expand_alias @@ -39,7 +39,10 @@ tmp= [[ -z $tmp && $sel = *G* ]] && tmp=$dis_galiases[$word] if [[ -n $tmp ]]; then - $pre _wanted aliases expl alias compadd -UQ ${(Q)tmp%%[[:blank:]]##} + # We used to remove the quoting from the value in the parameter. + # That was probably just an oversight: an alias is always replaced + # literally. + $pre _wanted aliases expl alias compadd -UQ ${tmp%%[[:blank:]]##} elif (( $#pre )) && zstyle -t ":completion:${curcontext}:" complete; then $pre _aliases -s "$sel" -S '' else |