On Di, 07 Apr 2015, Yclept Nemo wrote:

> Affects: 7.4.273 (me), 7.4.657
> Reproduce: vim -u NONE -c 'set laststatus=0 | vsp | call feedkeys("q:")'
> Screenshot: https://i.imgur.com/aTMwKoE.png
> Description: When &laststatus=0, all but the rightmost vertically split 
> windows
> bleed into the cmdline window: the horizontal cmdline split is too high and a
> single line from each vertically split buffer is visible *inside* the cmdline
> window.
> Attachment: from "vim -u NONE -c ':so $VIMRUNTIME/bugreport.vim'"

Here is a fix:

diff --git a/src/window.c b/src/window.c
--- a/src/window.c
+++ b/src/window.c
@@ -1236,7 +1236,8 @@ win_split_ins(size, flags, new_wp, dir)
        {
            wp->w_winrow = oldwin->w_winrow + oldwin->w_height + STATUS_HEIGHT;
            wp->w_status_height = oldwin->w_status_height;
-           oldwin->w_status_height = STATUS_HEIGHT;
+           /* Don't set the status_height for oldwin yet, this might break
+            * frame_fix_height(oldwin), therefore will be set below */
        }
 #ifdef FEAT_VERTSPLIT
        if (flags & WSP_BOT)
@@ -1244,6 +1245,9 @@ win_split_ins(size, flags, new_wp, dir)
 #endif
        frame_fix_height(wp);
        frame_fix_height(oldwin);
+       if (!before)
+           /* new window above current one, do it after 
frame_fix_height(oldwin) */
+           oldwin->w_status_height = STATUS_HEIGHT;
     }

     if (flags & (WSP_TOP | WSP_BOT))


Best,
Christian
-- 
Die Rätsel Gottes sind befriedigender als die Lösungen der Menschen.
                -- Gilbert Keith Chesterton

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui