1
0
mirror of https://github.com/gryf/tagbar.git synced 2026-05-03 04:10:55 +02:00

Mark current position before jumping to it

This commit is contained in:
Jan Larres
2011-02-01 15:28:48 +13:00
parent 053466b5a6
commit f8b49b2f20
+3
View File
@@ -1196,6 +1196,9 @@ function! s:JumpToTag()
execute 'wincmd p'
" Mark current position so it can be jumped back to
mark '
" Jump to the line where the tag is defined. Don't use the search pattern
" since it doesn't take the scope into account and thus can fail if tags
" with the same name are defined in different scopes (e.g. classes)