Fix issue with tags completion not working right after the colon
This commit is contained in:
parent
d2ff96717e
commit
42f427e718
@ -66,8 +66,10 @@ function! Complete_wikifiles(findstart, base)
|
|||||||
" Tags completion
|
" Tags completion
|
||||||
let metadata = vimwiki#base#load_tags_metadata()
|
let metadata = vimwiki#base#load_tags_metadata()
|
||||||
let tags = vimwiki#base#get_tags(metadata)
|
let tags = vimwiki#base#get_tags(metadata)
|
||||||
|
if a:base != ''
|
||||||
call filter(tags,
|
call filter(tags,
|
||||||
\ "v:val[:" . (len(a:base)-1) . "] == '" . substitute(a:base, "'", "''", '') . "'" )
|
\ "v:val[:" . (len(a:base)-1) . "] == '" . substitute(a:base, "'", "''", '') . "'" )
|
||||||
|
endif
|
||||||
return tags
|
return tags
|
||||||
elseif a:base !~ '#'
|
elseif a:base !~ '#'
|
||||||
" we look for wiki files
|
" we look for wiki files
|
||||||
|
Loading…
Reference in New Issue
Block a user