From 322f3075d2424c6ac021d5c3fd22aadf51310fbe Mon Sep 17 00:00:00 2001 From: Ingo Karkat Date: Wed, 29 Feb 2012 09:00:35 +0100 Subject: [PATCH] FIX: task number completion doesn't work on OS X. The recently added tests revealed that. Because of the sed \+ bound. As in f3fc18af6b80797e44903521a994218f98f9c022, fall back to the \{1,\} basic regexp. --- todo_completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todo_completion b/todo_completion index 9562f16..3f9d308 100644 --- a/todo_completion +++ b/todo_completion @@ -58,7 +58,7 @@ _todo() # a safety check of the ls action output. local todo=$( \ eval TODOTXT_VERBOSE=0 $_todo_sh '-@ -+ -p -x command ls "^ *${cur} "' | \ - sed -e 's/^ *[0-9]\+ //' -e 's/\((.) \)[0-9]\{2,4\}-[0-9]\{2\}-[0-9]\{2\} /\1/' \ + sed -e 's/^ *[0-9]\{1,\} //' -e 's/\((.) \)[0-9]\{2,4\}-[0-9]\{2\}-[0-9]\{2\} /\1/' \ -e 's/\([xX] \)\([0-9]\{2,4\}-[0-9]\{2\}-[0-9]\{2\} \)\{1,2\}/\1/' \ -e 's/[[:space:]]*$//' \ -e '1q' \