summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_devtodo
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2013-11-07 14:52:31 +0100
committerAxel Beckert <abe@deuxchevaux.org>2013-11-07 14:52:31 +0100
commitd799ac78a744a5359563af55b4dee9e91255a1dc (patch)
tree73475ed7089e6ee050085a96b88018994b43bdfc /Completion/Unix/Command/_devtodo
parentabfb3b136a4ad5b2832fb7d920442a2bb28c0697 (diff)
parent375115c7dfd6dff576915d25fe2ecdd381dd9d81 (diff)
downloadzsh-d799ac78a744a5359563af55b4dee9e91255a1dc.tar.gz
zsh-d799ac78a744a5359563af55b4dee9e91255a1dc.zip
Merge branch 'upstream' into debian
Diffstat (limited to 'Completion/Unix/Command/_devtodo')
-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)