1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 19:40:27 +01:00

Allow single-click for jumping to a tag, closes #16

This commit is contained in:
Jan Larres
2011-06-06 18:42:35 +12:00
parent 9d5af93a5b
commit 7aa936dc9c
2 changed files with 20 additions and 1 deletions

View File

@@ -97,6 +97,10 @@ if !exists('g:tagbar_expand')
let g:tagbar_expand = 0
endif
if !exists('g:tagbar_singleclick')
let g:tagbar_singleclick = 0
endif
if !exists('g:tagbar_foldlevel')
let g:tagbar_foldlevel = 99
endif
@@ -2788,6 +2792,8 @@ function! s:CheckMouseClick()
call s:CloseFold()
elseif (match(line, s:icon_closed . '[-+ ]') + 1) == curcol
call s:OpenFold()
elseif g:tagbar_singleclick
call s:JumpToTag(0)
endif
endfunction