fix base#find_files so that it works for filenames with whitespaces

This commit is contained in:
flex 2020-02-24 15:39:51 +01:00 committed by Tinmarino
parent 46025fb0fb
commit 76af17a872

View File

@ -500,11 +500,11 @@ function! vimwiki#base#find_files(wiki_nr, directories_only) abort
else
let pattern = '**/*'.ext
endif
let files = split(globpath(root_directory, pattern))
let files = split(globpath(root_directory, pattern), '\n')
" filter excluded files before returning
for pattern in vimwiki#vars#get_wikilocal('exclude_files')
let efiles = split(globpath(root_directory, pattern))
let efiles = split(globpath(root_directory, pattern), '\n')
let files = filter(files, 'index(efiles, v:val) == -1')
endfor