diff options
Diffstat (limited to 'Completion/Builtins')
-rw-r--r-- | Completion/Builtins/_zstyle | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Completion/Builtins/_zstyle b/Completion/Builtins/_zstyle index d64fc853b..1064c9c7e 100644 --- a/Completion/Builtins/_zstyle +++ b/Completion/Builtins/_zstyle @@ -13,10 +13,11 @@ styles=( add-space c:bool arguments c: auto-description c: + break c: completer c:completer completions c: condition c: - cursor c:bool + cursor c:cursor disable-stat c:bool domains c: expand c: @@ -132,6 +133,19 @@ while [[ -n $state ]]; do compadd "$expl[@]" true false auto select ;; + cursor) + if [[ "$words[2]" = *:completion:inc* ]]; then + _wanted values expl 'cursor positioning' && + compadd "$expl[@]" complete key default + elif [[ "$words[2]" = *:completion::* ]]; then + _wanted values expl 'cursor positioning' && + compadd "$expl[@]" true false + else + _wanted values expl 'cursor positioning' && + compadd "$expl[@]" complete key default true false + fi + ;; + completer) _wanted values expl completer && compadd "$expl[@]" _complete _approximate _correct _match \ |