From d51562a4c1e5b1278697f7c82109621881a7bb8e Mon Sep 17 00:00:00 2001 From: David Beniamine Date: Mon, 11 Feb 2019 11:33:30 +0100 Subject: [PATCH] Fix #33 --- autoload/todo.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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