diff options
| author | Oliver Kiddle <opk@users.sourceforge.net> | 2002-04-04 10:45:59 +0000 |
|---|---|---|
| committer | Oliver Kiddle <opk@users.sourceforge.net> | 2002-04-04 10:45:59 +0000 |
| commit | 41eb475f9b23ca4309e31bec21809cd23090feb0 (patch) | |
| tree | af0ac79abbddb03dda71040374ca72fc7a6f5444 /Completion/Base/Completer | |
| parent | 16927 + a usage-message fix. (diff) | |
| download | zsh-41eb475f9b23ca4309e31bec21809cd23090feb0.tar zsh-41eb475f9b23ca4309e31bec21809cd23090feb0.tar.gz zsh-41eb475f9b23ca4309e31bec21809cd23090feb0.tar.bz2 zsh-41eb475f9b23ca4309e31bec21809cd23090feb0.tar.lz zsh-41eb475f9b23ca4309e31bec21809cd23090feb0.tar.xz zsh-41eb475f9b23ca4309e31bec21809cd23090feb0.tar.zst zsh-41eb475f9b23ca4309e31bec21809cd23090feb0.zip | |
16923: add insert style for inserting matches instead of adding them as a match
Diffstat (limited to 'Completion/Base/Completer')
| -rw-r--r-- | Completion/Base/Completer/_all_matches | 8 |
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 |
