summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Beniamine <david@beniamine.net>2019-02-11 11:33:30 +0100
committerDavid Beniamine <david@beniamine.net>2019-02-11 11:33:30 +0100
commitd51562a4c1e5b1278697f7c82109621881a7bb8e (patch)
treec59e9c104c972e369c432fef4700811b6210049d
parentc8fbe04351a43a880b09f73b686cdf08da60c14b (diff)
downloadtodo.txt-vim-d51562a4c1e5b1278697f7c82109621881a7bb8e.zip
Fix #33
-rw-r--r--autoload/todo.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/todo.vim b/autoload/todo.vim
index 1ce11fc..6baa08d 100644
--- a/autoload/todo.vim
+++ b/autoload/todo.vim
@@ -187,7 +187,7 @@ function! todo#Sort(type)
"Now tasks without priority are at beggining, move them to the end
silent normal gg
let l:firstP=search('^\s*([A-Z])', 'cn')
- if l:firstP != 1
+ if l:firstP > 1
let num=l:firstP-1
" Sort normal
silent execute ':1 d b'.num