Mercurial > vim
comparison src/testdir/test_window_cmd.vim @ 22616:f773ac13c093 v8.2.1856
patch 8.2.1856: "2resize" uses size of current window
Commit: https://github.com/vim/vim/commit/9668cc57a1e70c99163f90f58202e206d12f40c8
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 17 17:39:55 2020 +0200
patch 8.2.1856: "2resize" uses size of current window
Problem: "2resize" uses size of current window.
Solution: Use size of resized window. (Yasuhiro Matsumoto, closes https://github.com/vim/vim/issues/7152)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 17 Oct 2020 17:45:04 +0200 |
parents | ff21e2962490 |
children | 65718283239b |
comparison
equal
deleted
inserted
replaced
22615:18958d4b31d1 | 22616:f773ac13c093 |
---|---|
1142 " :resize with explicit window number. | 1142 " :resize with explicit window number. |
1143 let other_winnr = winnr('j') | 1143 let other_winnr = winnr('j') |
1144 exe other_winnr .. 'resize 10' | 1144 exe other_winnr .. 'resize 10' |
1145 call assert_equal(10, winheight(other_winnr)) | 1145 call assert_equal(10, winheight(other_winnr)) |
1146 call assert_equal(&lines - 10 - 3, winheight(0)) | 1146 call assert_equal(&lines - 10 - 3, winheight(0)) |
1147 exe other_winnr .. 'resize +1' | |
1148 exe other_winnr .. 'resize +1' | |
1149 call assert_equal(12, winheight(other_winnr)) | |
1150 call assert_equal(&lines - 10 - 3 -2, winheight(0)) | |
1147 | 1151 |
1148 %bwipe! | 1152 %bwipe! |
1149 endfunc | 1153 endfunc |
1150 | 1154 |
1151 " Test for adjusting the window width when a window is closed with some | 1155 " Test for adjusting the window width when a window is closed with some |