diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-31 09:56:12 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-31 09:56:12 +0000 |
commit | 5a4253f42edc9258a9a5bad59b0fa2a7b4a46d50 (patch) | |
tree | 1c6cc1e77f12396acd87e448e777fbb5a143b03f /Completion/Core | |
parent | fd25b24df6b4f098944c4994195d3894a27a8208 (diff) | |
download | zsh-5a4253f42edc9258a9a5bad59b0fa2a7b4a46d50.tar.gz zsh-5a4253f42edc9258a9a5bad59b0fa2a7b4a46d50.tar.xz zsh-5a4253f42edc9258a9a5bad59b0fa2a7b4a46d50.zip |
allow display of only messages via $compstate[list]=messages (11688)
Diffstat (limited to 'Completion/Core')
-rw-r--r-- | Completion/Core/_main_complete | 6 | ||||
-rw-r--r-- | Completion/Core/_setup | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Completion/Core/_main_complete b/Completion/Core/_main_complete index a9a1d2a9a..39c8f0e5e 100644 --- a/Completion/Core/_main_complete +++ b/Completion/Core/_main_complete @@ -220,9 +220,9 @@ if [[ $compstate[old_list] = keep || nm -gt 1 ]]; then fi fi fi -elif [[ nm -eq 0 && -n "$_comp_mesg" ]]; then +elif [[ nm -le 1 && -n "$_comp_mesg" ]]; then compstate[insert]='' - compstate[list]='list force' + compstate[list]='list force messages' elif [[ nm -eq 0 && $#_lastdescr -ne 0 && $compstate[old_list] != keep ]] && zstyle -s ":completion:${curcontext}:warnings" format format; then @@ -251,7 +251,7 @@ fi [[ "$_comp_force_list" = always || ( "$_comp_force_list" = ?* && nm -ge _comp_force_list ) ]] && - compstate[list]="$compstate[list] force" + compstate[list]="${compstate[list]//messages} force" [[ "$compstate[old_list]" = keep ]] && ZLS_COLORS="$_saved_colors" diff --git a/Completion/Core/_setup b/Completion/Core/_setup index 6d5f09ab3..6bc36e3ef 100644 --- a/Completion/Core/_setup +++ b/Completion/Core/_setup @@ -64,5 +64,5 @@ fi zstyle -s ":completion:${curcontext}:$1" force-list val && [[ "$val" = always || ( "$val" = [0-9]## && - ( -z "$_comp_force_list" || _comp_force_list -lt val ) ) ]] && + ( -z "$_comp_force_list" || _comp_force_list -gt val ) ) ]] && _comp_force_list="$val" |