summaryrefslogtreecommitdiff
path: root/Completion
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2015-07-26 09:07:15 +0200
committerOliver Kiddle <opk@zsh.org>2015-07-26 09:07:15 +0200
commit679d52fcca727a6b9e4dddf63386580907e28f8c (patch)
tree8d122a6fca6bb110b2d2b9d2d1da137e20b58b34 /Completion
parent77af941a05a3d3441c78e533aaf624ce9c15c418 (diff)
downloadzsh-679d52fcca727a6b9e4dddf63386580907e28f8c.tar.gz
zsh-679d52fcca727a6b9e4dddf63386580907e28f8c.zip
35901: complete full names as removing later components was broken for aliases and unwanted in any case
Diffstat (limited to 'Completion')
-rw-r--r--Completion/X/Type/_x_font4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/X/Type/_x_font b/Completion/X/Type/_x_font
index a363b2775..1202d821e 100644
--- a/Completion/X/Type/_x_font
+++ b/Completion/X/Type/_x_font
@@ -9,8 +9,8 @@ _tags fonts || return 1
if (( ! $+_font_cache )); then
typeset -gU _font_cache
- _font_cache=( "${(@)^${(@f)$(_call_program fonts xlsfonts 2> /dev/null)}%%--*}--" )
+ _font_cache=( ${(f)"$(_call_program fonts xlsfonts)"} )
fi
_wanted fonts expl font \
- compadd -M 'r:|-=* r:|=*' "$@" -S '' -a - _font_cache
+ compadd -M 'r:|-=* r:|=*' "$@" -a - _font_cache