about summary refs log tree commit diff
path: root/Completion/Base
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2002-04-04 10:45:59 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2002-04-04 10:45:59 +0000
commit41eb475f9b23ca4309e31bec21809cd23090feb0 (patch)
treeaf0ac79abbddb03dda71040374ca72fc7a6f5444 /Completion/Base
parent53e646b1cc2900e06a2e8d0012afb6d21703948a (diff)
downloadzsh-41eb475f9b23ca4309e31bec21809cd23090feb0.tar.gz
zsh-41eb475f9b23ca4309e31bec21809cd23090feb0.tar.xz
zsh-41eb475f9b23ca4309e31bec21809cd23090feb0.zip
16923: add insert style for inserting matches instead of adding them as a match
Diffstat (limited to 'Completion/Base')
-rw-r--r--Completion/Base/Completer/_all_matches8
1 files changed, 6 insertions, 2 deletions
diff --git a/Completion/Base/Completer/_all_matches b/Completion/Base/Completer/_all_matches
index f33d78040..59a6d8060 100644
--- a/Completion/Base/Completer/_all_matches
+++ b/Completion/Base/Completer/_all_matches
@@ -33,8 +33,12 @@ _all_matches_end() {
   if [[ "$compstate[nmatches]" -gt 1 && $not[(I)(|_)$_completer] -eq 0 ]]; then
     local expl
 
-    _description all-matches expl 'all matches'
-    compadd "$expl[@]" -C
+    if zstyle -t "$_all_matches_context" insert; then
+      compstate[insert]=all
+    else
+      _description all-matches expl 'all matches'
+      compadd "$expl[@]" -C
+    fi
   fi
 
   unset _all_matches_context