summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2013-04-16 09:46:46 +0100
committerPeter Stephenson <pws@zsh.org>2013-04-16 09:46:46 +0100
commit7514fe4a66a7ed45c0878a93eaad0bb56d500700 (patch)
tree6d24523b1a21d1db127d3d3c007971606f2ef5b0 /Completion/Unix
parentb79156ab60393b1230e31a8156a9dcb472bd7a4c (diff)
downloadzsh-7514fe4a66a7ed45c0878a93eaad0bb56d500700.tar.gz
zsh-7514fe4a66a7ed45c0878a93eaad0bb56d500700.tar.xz
zsh-7514fe4a66a7ed45c0878a93eaad0bb56d500700.zip
Daniel Friesel: 31265: improved option handling for devtodo.
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_devtodo6
1 files changed, 4 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_devtodo b/Completion/Unix/Command/_devtodo
index 06fc675fc..2800f4a31 100644
--- a/Completion/Unix/Command/_devtodo
+++ b/Completion/Unix/Command/_devtodo
@@ -8,9 +8,11 @@ typeset -i i
 typeset expl
 
 for ((i=2; i <= $#words; i++)) {
-	if [[ $words[$i] == '--database' ]] {
+	if [[ $words[$i] == '--database' ]]; then
 		todo_opts+=(--database ${~words[$((++i))]})
-	}
+	elif [[ $words[$i] == '--sort' ]]; then
+		todo_opts+=(--sort ${words[$((++i))]})
+	fi
 }
 
 priorities=(verylow low medium high veryhigh)