Fix auto-resizing.

This commit is contained in:
jez 2011-03-16 14:16:06 -04:00
parent 378746b85c
commit ea0296a7e4
1 changed files with 9 additions and 0 deletions

View File

@ -2028,6 +2028,10 @@ function! s:Tlist_Window_Refresh_File(filename, ftype)
endif endif
call s:Tlist_Window_Update_Line_Offsets(fidx + 1, 1, end - start + 1) call s:Tlist_Window_Update_Line_Offsets(fidx + 1, 1, end - start + 1)
if !g:Tlist_Use_Horiz_Window && s:auto_width
exe 'vertical resize '.g:Tlist_WinWidth
endif
" Now that we have updated the taglist window, update the tags " Now that we have updated the taglist window, update the tags
" menu (if present) " menu (if present)
if g:Tlist_Show_Menu if g:Tlist_Show_Menu
@ -2368,6 +2372,11 @@ function! s:Tlist_Process_File(filename, ftype)
let s:fidx = fidx let s:fidx = fidx
let s:tidx = 0 let s:tidx = 0
" Tlist_Parse_Tagline will adjust this accordingly
if !g:Tlist_Use_Horiz_Window && s:auto_width
let g:Tlist_WinWidth = 0
endif
" Process the ctags output one line at a time. The substitute() " Process the ctags output one line at a time. The substitute()
" command is used to parse the tag lines instead of using the " command is used to parse the tag lines instead of using the
" matchstr()/stridx()/strpart() functions for performance reason " matchstr()/stridx()/strpart() functions for performance reason