This commit is contained in:
David Beniamine
2019-02-11 11:33:30 +01:00
parent c8fbe04351
commit d51562a4c1

View File

@@ -187,7 +187,7 @@ function! todo#Sort(type)
"Now tasks without priority are at beggining, move them to the end "Now tasks without priority are at beggining, move them to the end
silent normal gg silent normal gg
let l:firstP=search('^\s*([A-Z])', 'cn') let l:firstP=search('^\s*([A-Z])', 'cn')
if l:firstP != 1 if l:firstP > 1
let num=l:firstP-1 let num=l:firstP-1
" Sort normal " Sort normal
silent execute ':1 d b'.num silent execute ':1 d b'.num