about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_devtodo6
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5c81a6eca..cae4556a3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-04-16  Peter Stephenson  <p.stephenson@samsung.com>
+
+	* Daniel Friesel: 31265: Completion/Unix/Command/_devtodo:
+	improved option handling.
+
 2013-04-13  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	* unposted: .gitignore: ignore PDF and PS versions of intro file.
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)