From 41eb475f9b23ca4309e31bec21809cd23090feb0 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 4 Apr 2002 10:45:59 +0000 Subject: 16923: add insert style for inserting matches instead of adding them as a match --- Completion/Base/Completer/_all_matches | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Completion/Base') 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 -- cgit 1.4.1