Merge pull request #403 from dpc/dev

Fix diary index generation with custom file extensions
This commit is contained in:
John Campbell 2017-10-26 19:34:38 -04:00 committed by GitHub
commit bc6acf5103

View File

@ -65,7 +65,7 @@ fun! s:read_captions(files) "{{{
let result = {}
for fl in a:files
" remove paths and extensions
let fl_key = fnamemodify(fl, ':t:r')
let fl_key = substitute(fnamemodify(fl, ':t'), VimwikiGet('ext').'$', '', '')
if filereadable(fl)
for line in readfile(fl, '', s:vimwiki_max_scan_for_caption)