Skip to content

Commit

Permalink
Fix jumping to anchor
Browse files Browse the repository at this point in the history
For some reason `execute '/'.l:anchor` does not populate jumplist,
so use builtin vim `search()` function
  • Loading branch information
0rtz authored and alerque committed Oct 31, 2023
1 parent 4e9b4de commit 66ed2e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftplugin/markdown.vim
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ if !exists('*s:EditUrlUnderCursor')
execute l:editmethod l:url
endif
if l:anchor !=# ''
silent! execute '/'.l:anchor
call search(l:anchor, 's')
endif
else
execute l:editmethod . ' <cfile>'
Expand Down

0 comments on commit 66ed2e1

Please sign in to comment.