From c5344cfbdbb4ed6e4cc4b9d0142ea582329ea23e Mon Sep 17 00:00:00 2001 From: jez Date: Sat, 12 Mar 2011 03:24:23 -0500 Subject: [PATCH] Reposition cursor when toggling extradata. --- plugin/taglist.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/taglist.vim b/plugin/taglist.vim index 6034c81..aec744c 100644 --- a/plugin/taglist.vim +++ b/plugin/taglist.vim @@ -2852,8 +2852,12 @@ function! s:Tlist_Window_Toggle_Extra(ftype, extra_name) if s:auto_width let g:Tlist_WinWidth = 30 endif + + let cur_lnum = line('.') + let cur_col = col('.') call s:Tlist_Window_Update_File() call s:Tlist_Window_Check_Width() + call cursor(cur_lnum, cur_col) endfunction " Tlist_Refresh()