Fix jumping to anchor sometimes not working
This commit is contained in:
parent
8167c65499
commit
88b61f4e30
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user