summary refs log tree commit diff
path: root/Completion/Zsh/Command
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2016-07-28 16:16:25 +0200
committerOliver Kiddle <opk@zsh.org>2016-07-28 16:16:25 +0200
commitb816bb42cfc4d0fa05abb63ebf4098af05a3d593 (patch)
treecb3fb83d8d23df227fa6eaebed6ef3105d3c1ad2 /Completion/Zsh/Command
parent54d5f8e3632ca3698d90662d49d1320f91827078 (diff)
downloadzsh-b816bb42cfc4d0fa05abb63ebf4098af05a3d593.tar.gz
zsh-b816bb42cfc4d0fa05abb63ebf4098af05a3d593.tar.xz
zsh-b816bb42cfc4d0fa05abb63ebf4098af05a3d593.zip
38957: make use of updates to match-words-by-style and better support completion of word-style styles for zstyle
Diffstat (limited to 'Completion/Zsh/Command')
-rw-r--r--Completion/Zsh/Command/_zstyle7
1 files changed, 5 insertions, 2 deletions
diff --git a/Completion/Zsh/Command/_zstyle b/Completion/Zsh/Command/_zstyle
index 9a6d61891..20ff47f87 100644
--- a/Completion/Zsh/Command/_zstyle
+++ b/Completion/Zsh/Command/_zstyle
@@ -173,6 +173,7 @@ styles=(
   url-seps               e:
   whence                 e:
   word-chars             e:
+  word-class             e:
   word-style             e:word-style
   word-context           e:
 
@@ -241,11 +242,13 @@ while (( $#state )); do
   case "$state[1]" in
     (contexts)
       if [[ ! -prefix :*: ]]; then
-	_wanted contexts expl context compadd -P : -qS : completion vcs_info zftp
+	_wanted contexts expl context compadd -P : -qS : chpwd completion vcs_info zftp zle
       elif compset -P :completion:; then
         contexts=( functions _completers cmdorcont argument tag )
       elif compset -P :vcs_info:; then
         contexts=( vcs-string user-context repo-root-name )
+      elif compset -P :zle:; then
+	_wanted widgets expl widget _widgets -qS :
       fi
       if (( $#contexts )); then
         for ostate in $contexts; do
@@ -521,7 +524,7 @@ while (( $#state )); do
       ;;
 
     (word-style)
-      _wanted word-styles expl 'word style' compadd normal shell space
+      _wanted word-styles expl 'word style' compadd {normal,specified,unspecified,shell,whitespace}-subword
       ;;
 
     (vcs-string)