turn all == into ==# or ==? when comparing strings
or vimwiki#path#is_equal, if the strings are file names
This commit is contained in:
@ -43,7 +43,7 @@ function! Complete_wikifiles(findstart, base)
|
||||
if startoflink != -1
|
||||
return startoflink
|
||||
endif
|
||||
if VimwikiGet('syntax') == 'markdown'
|
||||
if VimwikiGet('syntax') ==? 'markdown'
|
||||
let startofinlinelink = match(line, '\[.*\](\zs.*$')
|
||||
if startofinlinelink != -1
|
||||
return startofinlinelink
|
||||
@ -84,7 +84,7 @@ function! Complete_wikifiles(findstart, base)
|
||||
" we look for anchors in the given wikifile
|
||||
|
||||
let segments = split(a:base, '#', 1)
|
||||
let given_wikifile = segments[0]=='' ? expand('%:t:r') : segments[0]
|
||||
let given_wikifile = segments[0] == '' ? expand('%:t:r') : segments[0]
|
||||
let link_infos = vimwiki#base#resolve_scheme(given_wikifile.'#', 0, 1)
|
||||
let wikifile = link_infos[6]
|
||||
let syntax = VimwikiGet('syntax', link_infos[0])
|
||||
|
Reference in New Issue
Block a user