summaryrefslogtreecommitdiff
path: root/src/testdir
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-19 20:22:36 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-19 20:22:36 +0100
commit38e3483637c16e018f88c07b1dcff97cdb821a29 (patch)
treea91689c6c1ceb3f519cfbd8fafdb488e30a71214 /src/testdir
parent7dd4850698e37c3ed4a3c3b23f4cdbf1ae6542f8 (diff)
downloadvim-git-38e3483637c16e018f88c07b1dcff97cdb821a29.tar.gz
patch 8.0.0490: vertical split makes 'winfixwidth' window smallerv8.0.0490
Problem: Splitting a 'winfixwidth' window vertically makes it one column smaller. (Dominique Pelle) Solution: Add one to the width for the separator.
Diffstat (limited to 'src/testdir')
-rw-r--r--src/testdir/test_window_cmd.vim12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/testdir/test_window_cmd.vim b/src/testdir/test_window_cmd.vim
index 58d139016..f7d5317f2 100644
--- a/src/testdir/test_window_cmd.vim
+++ b/src/testdir/test_window_cmd.vim
@@ -294,20 +294,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))