From 88b61f4e3007c9e3f682c9d590819a4da4a5e4db Mon Sep 17 00:00:00 2001 From: EinfachToll Date: Mon, 14 Apr 2014 13:11:26 +0200 Subject: [PATCH] Fix jumping to anchor sometimes not working --- 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 8d7f0f4..ec4ae0b 100644 --- a/autoload/vimwiki/base.vim +++ b/autoload/vimwiki/base.vim @@ -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