aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--autoload/todo/motion.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/autoload/todo/motion.vim b/autoload/todo/motion.vim
index 27d6264..32a7c88 100644
--- a/autoload/todo/motion.vim
+++ b/autoload/todo/motion.vim
@@ -1,14 +1,14 @@
let s:INCOMPLETE_MATCHER = '^\s*[\-_!] '
-function! s:Incomplete(search_flags)
+function! s:Incomplete(extra_search_flags)
let cnt = v:count1
- normal! m'
+ let search_flags = 's' . a:extra_search_flags
let i = 0
while i < cnt
- call search(s:INCOMPLETE_MATCHER, a:search_flags)
+ call search(s:INCOMPLETE_MATCHER, search_flags)
let i += 1
endwhile
endfunction