Fix :VimwikiNextTask

Use the correct function for accessing 'rxListItemWithoutCB'.
`ac4d0a1d46` refactored access to vars and it appears this is one place
where `get_syntaxlocal` should have been renamed to `get_wikilocal` but
was accidentally skipped.
This commit is contained in:
Ryan Winograd 2020-07-29 08:40:55 -05:00 committed by Tinmarino
parent 369a64cdc8
commit 7a4ad2ed95
3 changed files with 20 additions and 1 deletions

View File

@ -1342,7 +1342,7 @@ endfunction
" Find next task (Exported) " Find next task (Exported)
function! vimwiki#base#find_next_task() abort function! vimwiki#base#find_next_task() abort
let taskRegex = vimwiki#vars#get_syntaxlocal('rxListItemWithoutCB') let taskRegex = vimwiki#vars#get_wikilocal('rxListItemWithoutCB')
\ . '\+\(\[ \]\s\+\)\zs' \ . '\+\(\[ \]\s\+\)\zs'
call vimwiki#base#search_word(taskRegex, '') call vimwiki#base#search_word(taskRegex, '')
endfunction endfunction

View File

@ -3674,6 +3674,7 @@ Contributors and their Github usernames in roughly chronological order:
- Edward Bassett (@ebassett) - Edward Bassett (@ebassett)
- Rafael Castillo (@eltrufas) - Rafael Castillo (@eltrufas)
- Reiner Herrmann (@reinerh) - Reiner Herrmann (@reinerh)
- Ryan Winograd
============================================================================== ==============================================================================
@ -3692,6 +3693,7 @@ New:~
* PR #900: conceallevel is now setted locally for vimwiki buffers * PR #900: conceallevel is now setted locally for vimwiki buffers
* PR #901: adds multiparagraph blockquotes using email style syntax * PR #901: adds multiparagraph blockquotes using email style syntax
* PR #934: RSS feed generation for diary with :VimwikiRss. * PR #934: RSS feed generation for diary with :VimwikiRss.
* PR #959: Fix :VimwikiNextTask
2.5 (2020-05-26)~ 2.5 (2020-05-26)~

View File

@ -199,6 +199,23 @@ Expect (4 items toogled):
* [X] Chap2 * [X] Chap2
End End
################################################################################
# Todo list with text above
Given vimwiki (TODO list):
Some other text
- [ ] Todo Item
Execute (:VimwikiNextTask):
:execute "VimwikiNextTask" | execute 'normal yyp'
Expect (Introduce new todo item):
Some other text
- [ ] Todo Item
- [ ] Todo Item
################################################################################ ################################################################################
# Numbered Todo list # Numbered Todo list