From 42cd6020ea7eeb2d34ad94a6ea57d0972762fe47 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 10 Aug 2010 17:18:44 +0000 Subject: unposted: yet another update to _todo.sh --- Completion/Unix/Command/_todo.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Completion') diff --git a/Completion/Unix/Command/_todo.sh b/Completion/Unix/Command/_todo.sh index 0b8b95d2c..65544b25a 100644 --- a/Completion/Unix/Command/_todo.sh +++ b/Completion/Unix/Command/_todo.sh @@ -12,7 +12,7 @@ setopt localoptions braceccl -local expl curcontext="$curcontext" state line pri nextstate +local expl curcontext="$curcontext" state line pri nextstate item local -a cmdlist itemlist match mbegin mend integer NORMARG @@ -64,7 +64,8 @@ case $state in nextstate=proj ;; (replace) - compadd -Q -- "${(qq)$(todo.sh -p list "^[ 0]*${words[CURRENT-1]} " | sed '/^--/,$d')##<-> (\([A-Z]\) |)}" + item=${words[CURRENT-1]##0##} + compadd -Q -- "${(qq)$(todo.sh -p list "^[ 0]*$item " | sed '/^--/,$d')##<-> (\([A-Z]\) |)}" ;; esac fi -- cgit 1.4.1