summaryrefslogtreecommitdiffstats
path: root/Completion/Core/_main_complete
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-05 11:21:50 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-05 11:21:50 +0000
commite42717d18f331489e4c5fcdaefe7edbb3f58ac96 (patch)
tree6fad6bb7850988035a3c3f96ad4fb9ae173544d5 /Completion/Core/_main_complete
parent11185: Update contributors list for 3.1.7 (diff)
downloadzsh-e42717d18f331489e4c5fcdaefe7edbb3f58ac96.tar
zsh-e42717d18f331489e4c5fcdaefe7edbb3f58ac96.tar.gz
zsh-e42717d18f331489e4c5fcdaefe7edbb3f58ac96.tar.bz2
zsh-e42717d18f331489e4c5fcdaefe7edbb3f58ac96.tar.lz
zsh-e42717d18f331489e4c5fcdaefe7edbb3f58ac96.tar.xz
zsh-e42717d18f331489e4c5fcdaefe7edbb3f58ac96.tar.zst
zsh-e42717d18f331489e4c5fcdaefe7edbb3f58ac96.zip
make _message independent of when it is called (11188)
Diffstat (limited to 'Completion/Core/_main_complete')
-rw-r--r--Completion/Core/_main_complete5
1 files changed, 4 insertions, 1 deletions
diff --git a/Completion/Core/_main_complete b/Completion/Core/_main_complete
index cf2cbb808..c4672b61f 100644
--- a/Completion/Core/_main_complete
+++ b/Completion/Core/_main_complete
@@ -21,7 +21,7 @@ unsetopt markdirs globsubst shwordsplit nounset ksharrays
local func funcs ret=1 tmp _compskip format nm \
_completers _completer _completer_num curtag \
- _matchers _matcher _matcher_num _comp_tags \
+ _matchers _matcher _matcher_num _comp_tags _comp_mesg \
context state line opt_args val_args curcontext="$curcontext" \
_last_nmatches=-1 _last_menu_style _def_menu_style _menu_style sel \
_saved_exact="${compstate[exact]}" \
@@ -174,6 +174,9 @@ if [[ $compstate[old_list] = keep || nm -gt 1 ]]; then
fi
fi
fi
+elif [[ nm -eq 0 && -n "$_comp_mesg" ]]; then
+ compstate[insert]=''
+ compstate[list]='list force'
elif [[ nm -eq 0 &&
$#_lastdescr -ne 0 && $compstate[old_list] != keep ]] &&
zstyle -s ":completion:${curcontext}:warnings" format format; then