diff options
Diffstat (limited to 'Completion/Core')
-rw-r--r-- | Completion/Core/_main_complete | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Completion/Core/_main_complete b/Completion/Core/_main_complete index 795fe7442..0c0bd05b6 100644 --- a/Completion/Core/_main_complete +++ b/Completion/Core/_main_complete @@ -56,6 +56,16 @@ _def_menu_style=( "$_last_menu_style[@]" ) _last_menu_style=() +if zstyle -s ":completion:${curcontext}:default" list-prompt LISTPROMPT && + [[ -n "$LISTPROMPT" ]]; then + zmodload -i zsh/complist + compstate[list_max]=scroll +fi +zstyle -s ":completion:${curcontext}:default" select-prompt SELECTPROMPT || + SELECTPROMPT='%SScrolling active: current selection at %p' +zstyle -s ":completion:${curcontext}:default" select-scroll SELECTSCROLL || + SELECTSCROLL=1 + # Get the names of the completers to use in the positional parameters. if (( $# )); then |