From 9f1a091426fc97102b981618980f3726e0a72896 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 17 Jan 2009 18:33:19 +0100 Subject: _devtodo: Fixed broken completion for child items --- etc/completions/_devtodo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/completions/_devtodo') 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 -- cgit v1.2.3