On Do, 12 Jun 2014, Bram Moolenaar wrote:
> Looks like somehow the data structures allocated for the screen don't
> match with the screen size. That's weird.
It's not the screen size, that seems to be correct.
The problem is, set ls=2. This causes a recursive call to win_new_height() and
therefore does not adjust the window height correctly.
This patch fixes it for me:
diff --git a/src/window.c b/src/window.c
--- a/src/window.c
+++ b/src/window.c
@@ -5650,7 +5650,10 @@ win_new_height(wp, height)
if (wp->w_height > 0)
{
if (wp == curwin)
- validate_cursor(); /* w_wrow needs to be valid */
+ /* w_wrow needs to be valid, might call win_new_height recursively... */
+ validate_cursor();
+ if (wp->w_height != prev_height)
+ return; /* recursive call already changed window size */
if (wp->w_wrow != wp->w_prev_fraction_row)
set_fraction(wp);
}
Best,
Christian
--
Es ist nicht halb so ungesund, Philosophie zu lehren, als zu lernen,
e(ine) Philos(ophie) zu machen als zu lesen.
-- Jean Paul
--
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.