Skip to content

Commit 66ed2e1

Browse files
0rtzalerque
authored andcommitted
Fix jumping to anchor
For some reason `execute '/'.l:anchor` does not populate jumplist, so use builtin vim `search()` function
1 parent 4e9b4de commit 66ed2e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ftplugin/markdown.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ if !exists('*s:EditUrlUnderCursor')
719719
execute l:editmethod l:url
720720
endif
721721
if l:anchor !=# ''
722-
silent! execute '/'.l:anchor
722+
call search(l:anchor, 's')
723723
endif
724724
else
725725
execute l:editmethod . ' <cfile>'

0 commit comments

Comments
 (0)