added N and W prority

This commit is contained in:
Eric Taylor
2020-05-08 08:29:46 -07:00
parent 16373b82df
commit 61960a9ae3
3 changed files with 6 additions and 2 deletions

View File

@@ -40,11 +40,11 @@ endfunction
function! todo#PrioritizeAdd (priority)
let oldpos=todo#GetCurpos()
let line=getline('.')
if line !~ '^([A-F])'
if line !~ '^([A-W])'
:call todo#PrioritizeAddAction(a:priority)
let oldpos[2]+=4
else
exec ':s/^([A-F])/('.a:priority.')/'
exec ':s/^([A-W])/('.a:priority.')/'
endif
call setpos('.',oldpos)
endfunction