Fix: is_diary_file to support whitespaces (Issue #970)

This commit is contained in:
Jerome Gay 2020-08-05 00:44:05 +02:00 committed by Tinmarino
parent 708fde781a
commit b1de908f0e

View File

@ -2482,7 +2482,7 @@ function! vimwiki#base#is_diary_file(filename, ...) abort
let l:normalised_file_paths =
\ map(l:diary_file_paths, 'vimwiki#path#normalize(v:val)')
let l:matching_files =
\ filter(l:normalised_file_paths, 'v:val =~# a:filename')
\ filter(l:normalised_file_paths, "v:val ==# '" . a:filename . "'" )
return len(l:matching_files) > 0 " filename is a diary file if match is found
endfunction