Fix priority on canceleld tasks + tests

This commit is contained in:
David Beniamine
2017-09-26 14:57:48 +02:00
parent f35bcabcea
commit 25fa5dcf15
2 changed files with 62 additions and 5 deletions

View File

@@ -95,10 +95,10 @@ function! todo#UnMarkAsDone(status)
endfunction
function! todo#MarkAsDone(status)
exec ':s/\C^(\([A-Z]\))\(.*\)/\2 pri:\1/e'
if a:status!=''
exec 'normal! I'.a:status.' '
endif
exec ':s/\C^(\([A-Z]\))\(.*\)/\2 pri:\1/e'
call todo#PrependDate()
if (getline(".") =~ '^ ')
normal! gIx