Mercurial > vim
comparison src/testdir/test_window_cmd.vim @ 30251:0288baaedf91 v9.0.0461
patch 9.0.0461: 'scroll' is not always updated
Commit: https://github.com/vim/vim/commit/470a14140bc06f1653edf26ab0b3c9b801080353
Author: Luuk van Baal <luukvbaal@gmail.com>
Date: Wed Sep 14 01:27:23 2022 +0100
patch 9.0.0461: 'scroll' is not always updated
Problem: 'scroll' is not always updated.
Solution: Call win_init_size() at the right place.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 14 Sep 2022 02:30:03 +0200 |
parents | 91ecee475811 |
children | 48db7f8f1b44 |
comparison
equal
deleted
inserted
replaced
30250:c3b37b9e8919 | 30251:0288baaedf91 |
---|---|
1666 | 1666 |
1667 " No scroll for firstwin horizontal split | 1667 " No scroll for firstwin horizontal split |
1668 execute 'norm gg' . pos | 1668 execute 'norm gg' . pos |
1669 split | redraw | wincmd k | 1669 split | redraw | wincmd k |
1670 call assert_equal(1, line("w0")) | 1670 call assert_equal(1, line("w0")) |
1671 call assert_equal(&scroll, winheight(0) / 2) | |
1671 wincmd j | 1672 wincmd j |
1672 call assert_equal(win_screenpos(0)[0] - tabline - winbar_sb, line("w0")) | 1673 call assert_equal(win_screenpos(0)[0] - tabline - winbar_sb, line("w0")) |
1673 | 1674 |
1674 " No scroll when resizing windows | 1675 " No scroll when resizing windows |
1675 wincmd k | resize +2 | 1676 wincmd k | resize +2 |