summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Cook <illua@users.sourceforge.net>2025-04-12 12:37:00 -0400
committerEric Cook <illua@users.sourceforge.net>2025-04-20 09:46:27 -0400
commitb86f5d4c62cc44cd4faa5954f03d0da094e5c513 (patch)
tree78d8532b54a4359346319de10bc21d169e09a3bc
parent8c3c45732131433645686cdb6bbbb8974230c5a9 (diff)
downloadzsh-b86f5d4c62cc44cd4faa5954f03d0da094e5c513.tar.gz
zsh-b86f5d4c62cc44cd4faa5954f03d0da094e5c513.zip
53463: _hosts: allow overriding the default matching control
-rw-r--r--ChangeLog6
-rw-r--r--Completion/Unix/Type/_hosts2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 73127d0f2..f9a2aa15d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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,
diff --git a/Completion/Unix/Type/_hosts b/Completion/Unix/Type/_hosts
index 4057fee10..d242e2931 100644
--- a/Completion/Unix/Type/_hosts
+++ b/Completion/Unix/Type/_hosts
@@ -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