Fix error 'metadata file not found' when tag functions are called first time
This commit is contained in:
parent
e6f6fdd359
commit
8a0433dec5
@ -2048,6 +2048,9 @@ endfunction " }}}
|
||||
" Loads tags metadata from file, returns a dictionary
|
||||
function! vimwiki#base#load_tags_metadata() "{{{
|
||||
let metadata_path = VimwikiGet('path') . '/' . s:TAGS_METADATA_FILE_NAME
|
||||
if !filereadable(metadata_path)
|
||||
return []
|
||||
endif
|
||||
let metadata = []
|
||||
for line in readfile(metadata_path)
|
||||
let fields = split(line, '\t')
|
||||
|
Loading…
Reference in New Issue
Block a user