Mercurial > vim
comparison src/testdir/test_window_cmd.vim @ 11207:e6140f3d2be7 v8.0.0490
patch 8.0.0490: vertical split makes 'winfixwidth' window smaller
commit https://github.com/vim/vim/commit/38e3483637c16e018f88c07b1dcff97cdb821a29
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 19 20:22:36 2017 +0100
patch 8.0.0490: vertical split makes 'winfixwidth' window smaller
Problem: Splitting a 'winfixwidth' window vertically makes it one column
smaller. (Dominique Pelle)
Solution: Add one to the width for the separator.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 19 Mar 2017 20:30:04 +0100 |
parents | 7f355d8cd634 |
children | d06a3db9b651 |
comparison
equal
deleted
inserted
replaced
11206:7f0df640e94e | 11207:e6140f3d2be7 |
---|---|
292 | 292 |
293 2wincmd | | 293 2wincmd | |
294 set winfixwidth | 294 set winfixwidth |
295 vsplit Xc | 295 vsplit Xc |
296 let [ww1, ww2, ww3] = [winwidth(1), winwidth(2), winwidth(3)] | 296 let [ww1, ww2, ww3] = [winwidth(1), winwidth(2), winwidth(3)] |
297 " FIXME: commented out: I would expect the width of 2nd window to | 297 call assert_equal(2, winwidth(2)) |
298 " remain 2 but it's actually 1?! | |
299 "call assert_equal(2, winwidth(2)) | |
300 call assert_inrange(ww3, ww3 + 1, ww1) | 298 call assert_inrange(ww3, ww3 + 1, ww1) |
301 3wincmd > | 299 3wincmd > |
302 " FIXME: commented out: I would expect the width of 2nd window to | 300 call assert_equal(2, winwidth(2)) |
303 " remain 2 but it's actually 1?! | |
304 "call assert_equal(2, winwidth(2)) | |
305 call assert_equal(ww1 + 3, winwidth(1)) | 301 call assert_equal(ww1 + 3, winwidth(1)) |
306 call assert_equal(ww3 - 3, winwidth(3)) | 302 call assert_equal(ww3 - 3, winwidth(3)) |
307 wincmd = | 303 wincmd = |
308 " FIXME: commented out: I would expect the width of 2nd window to | 304 call assert_equal(2, winwidth(2)) |
309 " remain 2 but it's actually 1?! | |
310 "call assert_equal(2, winwidth(2)) | |
311 call assert_equal(ww1, winwidth(1)) | 305 call assert_equal(ww1, winwidth(1)) |
312 call assert_equal(ww3, winwidth(3)) | 306 call assert_equal(ww3, winwidth(3)) |
313 | 307 |
314 wincmd l | 308 wincmd l |
315 set winfixwidth& | 309 set winfixwidth& |