Friday, March 5, 2010

Re: original window width not being restored when closing taglist window

*** taglist.vim Thu May 24 20:46:16 2007
--- taglist_new.vim Fri Mar 05 12:18:35 2010
***************
*** 1797,1803 ****
if s:tlist_app_name != "winmanager"
if g:Tlist_Use_Horiz_Window || g:Tlist_Inc_Winwidth == 0 ||
\ s:tlist_winsize_chgd != 1 ||
! \ &columns < (80 + g:Tlist_WinWidth)
" No need to adjust window width if using horizontally split taglist
" window or if columns is less than 101 or if the user chose not to
" adjust the window width
--- 1797,1803 ----
if s:tlist_app_name != "winmanager"
if g:Tlist_Use_Horiz_Window || g:Tlist_Inc_Winwidth == 0 ||
\ s:tlist_winsize_chgd != 1 ||
! \ &columns < (70 + g:Tlist_WinWidth)
" No need to adjust window width if using horizontally split taglist
" window or if columns is less than 101 or if the user chose not to
" adjust the window width
Am 05.03.2010 04:27, schrieb James Cole:
> Hi,
>
> I've got a question about the Tag List plugin; I know there is a yahoo
> group specifically for taglist but it doesn't seem very active and I
> haven't had any replies there, so I thought I'd try here.
>
> I've got taglist set up to to expand the gVim window's width when it
> opens, and it should be reducing the widow's width back to its
> original size when the taglist closes - but it only does that when the
> window's original width (before opening the taglist window) was 79
> characters or more. If was less than that, closing the taglist does
> not shrink the width back again.
>
> It's an issue for me because when I'm writing text in the editor (as
> opposed to code - and i do use taglist with my text files), I like the
> window to be 75 characters wide.
>
> Does anyone have any idea what might be causing this? If it's of
> relevance, I'm using Tag List 4.5 with gVim 7.2 on Windows Vista.

Here: taglist v4.4

Looks like the 80 columns min width is hard-coded.
You may try the attached patch, it just replaces 80 with 70.

--
Andy

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: