Bug in Vim window height calculation with 'winfixheight'

16 views
Skip to first unread message

Yegappan Lakshmanan

unread,
Jul 23, 2010, 2:12:22 AM7/23/10
to vim...@googlegroups.com
Hi,

I see the following problem with the 'winfixheight' option.

1. Open two vertically split windows

:vsplit

2. Open a horizontally split window with the 'winfixheight' option:

:botright 5new
:setlocal winfixheight

3. Open another horizontally split window and close it:

:botright new
:close

Repeat step 3 few times. You will notice that every time the window is
closed, the height of the window with the 'winfixheight' option will increase.
I expected that the height of this window will remain the same.

This problem is not seen if instead of two windows at the top, only one
window is used in the above steps.

I see the above problem using Vim 7.2.

- Yegappan

Yegappan Lakshmanan

unread,
May 29, 2023, 12:49:47 PM5/29/23
to Bram Moolenaar, vim...@googlegroups.com
Hi Bram,

On Fri, Jul 23, 2010 at 11:17 AM Bram Moolenaar <Br...@moolenaar.net> wrote:
> I'll add it to the todo list.
>

I am not able to reproduce this issue with the latest Vim. So the
following item can be
removed from the todo list:

opening/closing window causes other window with 'winfixheight' to change
height. Also happens when there is another window in the frame, if it's not
very high. (Yegappan Lakshmanan, 2010 Jul 22, Michael Peeters, 2010 Jul 22)

Regards,
Yegappan

Bram Moolenaar

unread,
May 29, 2023, 3:00:26 PM5/29/23
to vim...@googlegroups.com, Yegappan Lakshmanan

Yegappan Lakshmanan wrote:

> > > I see the following problem with the 'winfixheight' option.
> > >
> > > 1. Open two vertically split windows
> > >
> > > :vsplit
> > >
> > > 2. Open a horizontally split window with the 'winfixheight' option:
> > >
> > > :botright 5new
> > > :setlocal winfixheight
> > >
> > > 3. Open another horizontally split window and close it:
> > >
> > > :botright new
> > > :close
> > >
> > > Repeat step 3 few times. You will notice that every time the window is
> > > closed, the height of the window with the 'winfixheight' option will in=
> crease.
> > > I expected that the height of this window will remain the same.
> > >
> > > This problem is not seen if instead of two windows at the top, only one
> > > window is used in the above steps.
> > >
> > > I see the above problem using Vim 7.2.
> >
> > I'll add it to the todo list.
> >
>
> I am not able to reproduce this issue with the latest Vim. So the
> following item can be
> removed from the todo list:
>
> opening/closing window causes other window with 'winfixheight' to change
> height. Also happens when there is another window in the frame, if it's not
> very high. (Yegappan Lakshmanan, 2010 Jul 22, Michael Peeters, 2010 Jul 22)

OK, I'll remove the paragraph.

--
The sooner you fall behind, the more time you'll have to catch up.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages