Fix: get_wikilinks arguments: add pattern

This commit is contained in:
Tinmarino
2020-05-26 14:05:42 -04:00
parent 1eb74dcf2f
commit 36fa81c059
4 changed files with 4 additions and 3 deletions

View File

@ -529,6 +529,7 @@ endfunction
" files in the given wiki.
" If the given wiki number is negative, the diary of the current wiki is used.
" If also_absolute_links is nonzero, also return links of the form /file
" If pattern is not '', only filepaths matching pattern will be considered
function! vimwiki#base#get_wikilinks(wiki_nr, also_absolute_links, pattern) abort
let files = vimwiki#base#find_files(a:wiki_nr, 0, a:pattern)
if a:wiki_nr == vimwiki#vars#get_bufferlocal('wiki_nr')