Fix regression: some variables are global, not syntax-local

Ref #256
This commit is contained in:
EinfachToll 2018-02-20 17:42:13 +01:00
parent f8ee21aa64
commit 46a5be9b3b

View File

@ -1093,8 +1093,8 @@ function! vimwiki#base#follow_link(split, reuse, move_cursor, ...) "{{{
\ vimwiki#vars#get_syntaxlocal('rxWikiLinkMatchUrl'))
" try WikiIncl
if lnk == ""
let lnk = matchstr(vimwiki#base#matchstr_at_cursor(vimwiki#vars#get_syntaxlocal('rxWikiIncl')),
\ vimwiki#vars#get_syntaxlocal('rxWikiInclMatchUrl'))
let lnk = matchstr(vimwiki#base#matchstr_at_cursor(vimwiki#vars#get_global('rxWikiIncl')),
\ vimwiki#vars#get_global('rxWikiInclMatchUrl'))
endif
" try Weblink
if lnk == ""