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 diff --git a/ftplugin/todo.vim b/ftplugin/todo.vim index 2131475..c0c6e97 100644 --- a/ftplugin/todo.vim +++ b/ftplugin/todo.vim @@ -7,7 +7,7 @@ if exists("g:Todo_txt_loaded") finish else - let g:Todo_txt_loaded=0.8.1 + let g:Todo_txt_loaded=0.8.2 endif " Save context {{{1