aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2020-03-21 19:20:39 +0100
committerTeddy Wing2020-03-21 19:20:39 +0100
commit953c0b15706cb7f8cded7d6792e5031e2a78228f (patch)
tree3f864662bb11c599c967e91280fc446804dad13a
parent5ee078bc4c434764f413b036fcb39ca97b5ae74e (diff)
downloadvim-twodo-953c0b15706cb7f8cded7d6792e5031e2a78228f.tar.bz2
todo#motion#NextIncomplete(): Add count support
-rw-r--r--autoload/todo/motion.vim9
1 files changed, 8 insertions, 1 deletions
diff --git a/autoload/todo/motion.vim b/autoload/todo/motion.vim
index 3ebab2d..96877a9 100644
--- a/autoload/todo/motion.vim
+++ b/autoload/todo/motion.vim
@@ -2,8 +2,15 @@ let s:INCOMPLETE_MATCHER = '^\s*[\-_!] '
function! todo#motion#NextIncomplete()
+ let cnt = v:count1
+
normal! m'
- call search(s:INCOMPLETE_MATCHER)
+
+ let i = 0
+ while i < cnt
+ call search(s:INCOMPLETE_MATCHER)
+ let i += 1
+ endwhile
endfunction