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,
\ '__Text__', "\\='".segment."'", '')
if !search(anchor_header, 'c') && !search(anchor_bold, 'c')
if !search(anchor_header, 'W') && !search(anchor_bold, 'W')
call setpos('.', oldpos)
break
endif