From b954923cbf26c4aff90b4dbde11e2113a5ea4157 Mon Sep 17 00:00:00 2001 From: EinfachToll Date: Mon, 18 Aug 2014 09:38:45 +0200 Subject: [PATCH] Fix jumping to an anchor in the very first line --- autoload/vimwiki/base.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vimwiki/base.vim b/autoload/vimwiki/base.vim index 05a8a1d..91b3151 100644 --- a/autoload/vimwiki/base.vim +++ b/autoload/vimwiki/base.vim @@ -759,7 +759,7 @@ function! s:jump_to_anchor(anchor) "{{{ let anchor_bold = substitute(g:vimwiki_{VimwikiGet('syntax')}_bold_match, \ '__Text__', "\\='".segment."'", '') - if !search(anchor_header, 'W') && !search(anchor_bold, 'W') + if !search(anchor_header, 'Wc') && !search(anchor_bold, 'Wc') call setpos('.', oldpos) break endif