mirror of
https://github.com/gryf/tagbar.git
synced 2026-10-07 22:32:39 +02:00
Mark current position before jumping to it
This commit is contained in:
1 parent
053466b5a6
commit
f8b49b2f20
1 file changed
+3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user