Bugfix, take 2: depri no longer wipes out entire task with other parens http://tech.groups.yahoo.com/group/todotxt/message/1828

This commit is contained in:
Gina Trapani
2009-04-07 10:32:16 -07:00
parent 8fceae171d
commit 3028de42a8

View File

@@ -633,7 +633,7 @@ case $action in
if [ "$?" -eq 0 ]; then if [ "$?" -eq 0 ]; then
#it's all good, continue #it's all good, continue
sed -i.bak -e $2"s/^([^)]*) //" "$TODO_FILE" sed -i.bak -e $2"s/^(.) //" "$TODO_FILE"
NEWTODO=$(sed "$2!d" "$TODO_FILE") NEWTODO=$(sed "$2!d" "$TODO_FILE")
[ $TODOTXT_VERBOSE -gt 0 ] && echo -e "`echo "$item: $NEWTODO"`" [ $TODOTXT_VERBOSE -gt 0 ] && echo -e "`echo "$item: $NEWTODO"`"
[ $TODOTXT_VERBOSE -gt 0 ] && echo "TODO: $item deprioritized." [ $TODOTXT_VERBOSE -gt 0 ] && echo "TODO: $item deprioritized."