Fix issue with tags completion not working right after the colon

This commit is contained in:
Ivan Tishchenko 2015-02-05 00:05:04 +03:00
parent d2ff96717e
commit 42f427e718

View File

@ -66,8 +66,10 @@ function! Complete_wikifiles(findstart, base)
" Tags completion
let metadata = vimwiki#base#load_tags_metadata()
let tags = vimwiki#base#get_tags(metadata)
call filter(tags,
if a:base != ''
call filter(tags,
\ "v:val[:" . (len(a:base)-1) . "] == '" . substitute(a:base, "'", "''", '') . "'" )
endif
return tags
elseif a:base !~ '#'
" we look for wiki files