summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-01-17 18:33:19 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-01-17 18:33:19 +0100
commit9f1a091426fc97102b981618980f3726e0a72896 (patch)
treea2054d2fecd62ab004cfe6591bf234904b030c23
parent0bd40035437b8b7d539518bc727e31fdd62e1033 (diff)
_devtodo: Fixed broken completion for child items
-rw-r--r--etc/completions/_devtodo2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/completions/_devtodo b/etc/completions/_devtodo
index 7795da6..7a3f326 100644
--- a/etc/completions/_devtodo
+++ b/etc/completions/_devtodo
@@ -92,7 +92,7 @@ function _todo_index () {
number=${entry%%:*}
depth=$(( ${#number} - ${#${number// }} ))
# FIXME the subscripts operate on the string instead of the array
- ((depth)) && entry=${(j:.:)${${(s:.:)${last_entry%%:*}#.}[1,$depth]}}.$entry
+ ((depth)) && entry=${(j:.:)${${(s:.:):-a.${last_entry%%:*}}[2,depth+1]}}.$entry
text=${entry#*:}
number=${${entry%%:*}// }
entry=$number:$text