fix base#find_files so that it works for filenames with whitespaces
This commit is contained in:
parent
46025fb0fb
commit
76af17a872
@ -500,11 +500,11 @@ function! vimwiki#base#find_files(wiki_nr, directories_only) abort
|
|||||||
else
|
else
|
||||||
let pattern = '**/*'.ext
|
let pattern = '**/*'.ext
|
||||||
endif
|
endif
|
||||||
let files = split(globpath(root_directory, pattern))
|
let files = split(globpath(root_directory, pattern), '\n')
|
||||||
|
|
||||||
" filter excluded files before returning
|
" filter excluded files before returning
|
||||||
for pattern in vimwiki#vars#get_wikilocal('exclude_files')
|
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')
|
let files = filter(files, 'index(efiles, v:val) == -1')
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user