Reposition cursor when toggling extradata.

This commit is contained in:
jez 2011-03-12 03:24:23 -05:00
parent 852777a0a4
commit c5344cfbdb
1 changed files with 4 additions and 0 deletions

View File

@ -2852,8 +2852,12 @@ function! s:Tlist_Window_Toggle_Extra(ftype, extra_name)
if s:auto_width if s:auto_width
let g:Tlist_WinWidth = 30 let g:Tlist_WinWidth = 30
endif endif
let cur_lnum = line('.')
let cur_col = col('.')
call s:Tlist_Window_Update_File() call s:Tlist_Window_Update_File()
call s:Tlist_Window_Check_Width() call s:Tlist_Window_Check_Width()
call cursor(cur_lnum, cur_col)
endfunction endfunction
" Tlist_Refresh() " Tlist_Refresh()