1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 10:01:11 +02:00

35901: complete full names as removing later components was broken for aliases and unwanted in any case

This commit is contained in:
Oliver Kiddle 2015-07-26 09:07:15 +02:00
parent 77af941a05
commit 679d52fcca
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2015-07-26 Oliver Kiddle <opk@zsh.org>
* 35901: Completion/X/Type/_x_font: complete full names as removing
later components was broken for aliases and unwanted in any case
2015-07-26 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
* Antony Lee: 35899: Completion/Unix/Type/_python_modules:

View file

@ -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