From 679d52fcca727a6b9e4dddf63386580907e28f8c Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Sun, 26 Jul 2015 09:07:15 +0200 Subject: 35901: complete full names as removing later components was broken for aliases and unwanted in any case --- Completion/X/Type/_x_font | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Completion/X') 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 -- cgit 1.4.1