From cc3e5f73aa3de8041e3352f81b39e0c503ab8287 Mon Sep 17 00:00:00 2001 From: Emil Sit Date: Fri, 20 Mar 2009 11:32:29 +0800 Subject: [PATCH] _list: Add in an extra filter to remove empty lines. The rewrite of ls functionality may have allowed blank but numbered lines to creep into the ls display. Search for such lines and exclude them. Signed-off-by: Emil Sit Signed-off-by: Gina Trapani --- todo.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/todo.sh b/todo.sh index 675af36..cced51a 100755 --- a/todo.sh +++ b/todo.sh @@ -407,6 +407,7 @@ _list() { command=$( sed = "$src" \ | sed "N; s/^/ /; s/ *\(.\{$PADDING,\}\)\n/\1 /" \ + | grep -v "^[0-9]\+ *$" \ | eval ${filter_command:-cat} \ | sed ''' s/^ /00000/;