1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-06-18 21:38:03 +02:00

53463: _hosts: allow overriding the default matching control

This commit is contained in:
Eric Cook 2025-04-12 12:37:00 -04:00
parent 8c3c457321
commit b86f5d4c62
2 changed files with 7 additions and 1 deletions
ChangeLog
Completion/Unix/Type

View file

@ -1,3 +1,9 @@
2025-04-20 Eric Cook <illua@users.sourceforge.net>
* 53463: Completion/Unix/Type/_hosts: allow overriding the default
matching control
2025-04-19 dana <dana@dana.is>
* 53483: Doc/Zsh/mod_zutil.yo, Src/Modules/zutil.c,

View file

@ -75,4 +75,4 @@ if ! zstyle -a ":completion:${curcontext}:hosts" hosts _hosts; then
fi
_wanted hosts expl host \
compadd -M 'm:{a-zA-Z}={A-Za-z} r:|.=* r:|=*' -a "$@" - _hosts
compadd -a "$@" -M 'm:{a-zA-Z}={A-Za-z} r:|.=* r:|=*' - _hosts