Fix jumping to anchor sometimes not working

This commit is contained in:
EinfachToll 2014-04-14 13:11:26 +02:00
parent 8167c65499
commit 88b61f4e30

View File

@ -681,7 +681,7 @@ function! s:jump_to_anchor(anchor) "{{{
let anchor_bold = substitute(g:vimwiki_{VimwikiGet('syntax')}_bold_match, let anchor_bold = substitute(g:vimwiki_{VimwikiGet('syntax')}_bold_match,
\ '__Text__', "\\='".segment."'", '') \ '__Text__', "\\='".segment."'", '')
if !search(anchor_header, 'c') && !search(anchor_bold, 'c') if !search(anchor_header, 'W') && !search(anchor_bold, 'W')
call setpos('.', oldpos) call setpos('.', oldpos)
break break
endif endif