diff options
| author | KunMing Xie <qqzz014@gmail.com> | 2018-02-12 07:00:24 +0800 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2018-02-12 00:00:24 +0100 |
| commit | 6bcee20806960fca2876cb76544cbca50831692e (patch) | |
| tree | 83c233370112394c4eb7c851db16fb973addd11f /src/nvim/testdir | |
| parent | f389196a344591da2f6cc2a63f4953e34316f954 (diff) | |
| download | rneovim-6bcee20806960fca2876cb76544cbca50831692e.tar.gz rneovim-6bcee20806960fca2876cb76544cbca50831692e.tar.bz2 rneovim-6bcee20806960fca2876cb76544cbca50831692e.zip | |
vim-patch:8.0.0490: vertical split makes 'winfixwidth' window smaller (#7990)
Problem: Splitting a 'winfixwidth' window vertically makes it one column
smaller. (Dominique Pelle)
Solution: Add one to the width for the separator.
https://github.com/vim/vim/commit/38e3483637c16e018f88c07b1dcff97cdb821a29
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_window_cmd.vim | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/nvim/testdir/test_window_cmd.vim b/src/nvim/testdir/test_window_cmd.vim index 9d61921988..139d29a48b 100644 --- a/src/nvim/testdir/test_window_cmd.vim +++ b/src/nvim/testdir/test_window_cmd.vim @@ -306,20 +306,14 @@ func Test_window_width() set winfixwidth vsplit Xc let [ww1, ww2, ww3] = [winwidth(1), winwidth(2), winwidth(3)] - " FIXME: commented out: I would expect the width of 2nd window to - " remain 2 but it's actually 1?! - "call assert_equal(2, winwidth(2)) + call assert_equal(2, winwidth(2)) call assert_inrange(ww3, ww3 + 1, ww1) 3wincmd > - " FIXME: commented out: I would expect the width of 2nd window to - " remain 2 but it's actually 1?! - "call assert_equal(2, winwidth(2)) + call assert_equal(2, winwidth(2)) call assert_equal(ww1 + 3, winwidth(1)) call assert_equal(ww3 - 3, winwidth(3)) wincmd = - " FIXME: commented out: I would expect the width of 2nd window to - " remain 2 but it's actually 1?! - "call assert_equal(2, winwidth(2)) + call assert_equal(2, winwidth(2)) call assert_equal(ww1, winwidth(1)) call assert_equal(ww3, winwidth(3)) |