Mercurial > vim
changeset 23434:0fe2cdcff19b v8.2.2260
patch 8.2.2260: window resize test fails in very wide terminal
Commit: https://github.com/vim/vim/commit/5efe0e5d16db070f0ab0b944686139e597afe166
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 1 14:31:34 2021 +0100
patch 8.2.2260: window resize test fails in very wide terminal
Problem: Window resize test fails in very wide terminal.
Solution: Resize using the 'columns' option. (Vladimir Lomov, closes https://github.com/vim/vim/issues/7592)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 01 Jan 2021 14:45:04 +0100 |
parents | f75060fff21e |
children | d94ada879d70 |
files | src/testdir/test_window_cmd.vim src/version.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_window_cmd.vim +++ b/src/testdir/test_window_cmd.vim @@ -1154,7 +1154,7 @@ func Test_window_resize() wincmd l let other_winnr = winnr('h') call assert_notequal(winnr(), other_winnr) - exe 'vert ' .. other_winnr .. 'resize -100' + exe 'vert ' .. other_winnr .. 'resize -' .. &columns call assert_equal(0, winwidth(other_winnr)) %bwipe!