Fix jumping to an anchor in the very first line

This commit is contained in:
EinfachToll 2014-08-18 09:38:45 +02:00
parent 2dd9a153bc
commit b954923cbf

View File

@ -759,7 +759,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, 'W') && !search(anchor_bold, 'W') if !search(anchor_header, 'Wc') && !search(anchor_bold, 'Wc')
call setpos('.', oldpos) call setpos('.', oldpos)
break break
endif endif