diff --git a/autoload/vimwiki/base.vim b/autoload/vimwiki/base.vim index a8a38dd..32fd5d5 100644 --- a/autoload/vimwiki/base.vim +++ b/autoload/vimwiki/base.vim @@ -692,9 +692,9 @@ function! s:jump_to_anchor(anchor) "{{{ let anchor_tag = substitute(g:vimwiki_{VimwikiGet('syntax')}_tag_match, \ '__Tag__', "\\='".segment."'", '') - if !search(anchor_header, 'Wc') + if !search(anchor_tag, 'Wc') + \ && !search(anchor_header, 'Wc') \ && !search(anchor_bold, 'Wc') - \ && !search(anchor_tag, 'Wc') call setpos('.', oldpos) break endif