Fix error 'metadata file not found' when tag functions are called first time

This commit is contained in:
Ivan Tishchenko 2015-01-10 00:51:37 +03:00
parent e6f6fdd359
commit 8a0433dec5

View File

@ -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')