Re: annoying window behavior with noequalalways and splitright

2020-04-15 Fir de Conversatie Bram Moolenaar
Mark Waggoner wrote: > Here's a test: Thanks! Always nice when someone fixes the problem they reported themselves :-). -- "The future's already arrived - it's just not evenly distributed yet." -- William Gibson /// Bram Moolenaar -- b...@moolenaar.net --

Re: annoying window behavior with noequalalways and splitright

2020-04-14 Fir de Conversatie Mark Waggoner
Here's a test: diff --git i/src/testdir/test_winbuf_close.vim w/src/testdir/test_winbuf_close.vim index 7f5b80e8d..f32735e45 100644 --- i/src/testdir/test_winbuf_close.vim +++ w/src/testdir/test_winbuf_close.vim @@ -194,3 +194,23 @@ func Test_tabwin_close() call assert_true(v:true) %bwipe!

Re: annoying window behavior with noequalalways and splitright

2020-04-14 Fir de Conversatie Mark Waggoner
This seems to work better: diff --git i/src/window.c w/src/window.c index 7efe7b164..e28955d1b 100644 --- i/src/window.c +++ w/src/window.c @@ -2967,10 +2967,18 @@ win_altframe( if (frp->fr_next == NULL) return frp->fr_prev; +// By default the next window will get the space

annoying window behavior with noequalalways and splitright

2020-04-14 Fir de Conversatie Mark Waggoner
If you have splitright and noequalalways set, when you split a window (normal horizontal split, not vertical split), the split will appear above the current window. When you close the split window, the space is restored to the window ABOVE, not back to the window below. I can see that this is