When using winfixwidth or winfixheight, resizing Vim window breaks window layout.

231 views
Skip to first unread message

Yukihiro Nakadaira

unread,
Sep 17, 2011, 10:46:57 AM9/17/11
to vim...@googlegroups.com
When using winfixwidth or winfixheight, resizing Vim window breaks
window layout.

$ vim -u NONE
:vsplit
:setlocal winfixheight
:split
:setlocal winfixheight

Now, Vim window is

+--------------------------------------------------------+
| | |
|~ |~ |
|~ |~ |
|~ |~ |
|~ |~ |
|~ |~ |
|~ |~ |
|[No Name] |~ |
| |~ |
|~ |~ |
|~ |~ |
|~ |~ |
|~ |~ |
|~ |~ |
|[No Name] [No Name] |
| |
+--------------------------------------------------------+

Then, resize (increase) Vim window's height with mouse.

+--------------------------------------------------------+
| | |
|~ |~ |
|~ |~ |
|~ |~ |
|~ |~ |
|~ |~ |
|~ |~ |
|[No Name] |~ |
| |~ |
|~ |~ |
|~ |~ |
|~ |~ |
|~ |~ |
|~ |~ |
|[No Name] ~ |
| ~ |
| ~ |
| [No Name] |
| |
+--------------------------------------------------------+

At left bottom corner, odd space appears.

It also happens for winfixwidth.

$ vim -u NONE
:split
:setlocal winfixwidth
:vsplit
:setlocal winfixwidth


--
Yukihiro Nakadaira - yukihiro....@gmail.com

Bram Moolenaar

unread,
Sep 17, 2011, 12:46:23 PM9/17/11
to Yukihiro Nakadaira, vim...@googlegroups.com

Yukihiro Nakadaira wrote:

I'll put it in the todo list. But perhaps someone can make a patch to
fix it.

--
hundred-and-one symptoms of being an internet addict:
14. You start introducing yourself as "Jim at I-I-Net dot net dot au"

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Yukihiro Nakadaira

unread,
Sep 18, 2011, 1:18:23 AM9/18/11
to Bram Moolenaar, vim...@googlegroups.com
The attached patch fixes the problem.
Please check it.
fixwinsize.diff

Bram Moolenaar

unread,
Sep 18, 2011, 6:47:08 AM9/18/11
to Yukihiro Nakadaira, vim...@googlegroups.com

Yukihiro Nakadaira wrote:

> The attached patch fixes the problem.
> Please check it.

I'm very glad you managed to find a fix.

Now I have the luxury problem of keeping up with reviewing all the
patches...

--
hundred-and-one symptoms of being an internet addict:

17. You turn on your intercom when leaving the room so you can hear if new
e-mail arrives.

Reply all
Reply to author
Forward
0 new messages