about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Zsh/Command/_zstyle6
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8c3f99d0e..4d1e16917 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2021-02-07  Oliver Kiddle  <opk@zsh.org>
 
+	* 47929: Completion/Zsh/Command/_zstyle: complete newer
+	possible values for the sort style
+
 	* based on github #62: oxiedi@yandex.ru:
 	Completion/Unix/Type/_date_formats: return proper exit status
 
diff --git a/Completion/Zsh/Command/_zstyle b/Completion/Zsh/Command/_zstyle
index 75acde5f7..bb0e1f5bc 100644
--- a/Completion/Zsh/Command/_zstyle
+++ b/Completion/Zsh/Command/_zstyle
@@ -111,7 +111,7 @@ styles=(
   show-ambiguity	 c:
   show-completer	 c:bool
   single-ignored         c:single-ignored
-  sort			 c:bool
+  sort			 c:sort-order
   special-dirs		 c:sdirs
   squeeze-slashes	 c:bool
   stop			 c:stop
@@ -571,6 +571,10 @@ while (( $#state )); do
       _message -e separators 'separator string'
       ;;
 
+    (sort-order)
+      _wanted sort-orders expl 'sort order' compadd -F line - true false match nosort numeric reverse
+      ;;
+
     (max-matches-width)
       _message -e numbers 'maximum display width for matches'
       ;;