diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-03-13 10:09:09 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-03-13 10:16:23 -0500 |
commit | a1cdb6ca6a796b6ff5593f924659f5b707e23e27 (patch) | |
tree | 82f70a113233a5cb984e04b75d5ba4f06a851782 /test/functional/legacy/options_spec.lua | |
parent | 60670c1fd35db29a9a7a20e7ce743b8c17842172 (diff) | |
download | rneovim-a1cdb6ca6a796b6ff5593f924659f5b707e23e27.tar.gz rneovim-a1cdb6ca6a796b6ff5593f924659f5b707e23e27.tar.bz2 rneovim-a1cdb6ca6a796b6ff5593f924659f5b707e23e27.zip |
vim-patch:8.2.2595: setting 'winminheight' may cause 'lines' to change
Problem: Setting 'winminheight' may cause 'lines' to change.
Solution: Also take minimal height of other tabpages into account. (vim/vim#7899)
https://github.com/vim/vim/commit/9e813b3dea94a8952b732a224fa31beba6e85973
Diffstat (limited to 'test/functional/legacy/options_spec.lua')
-rw-r--r-- | test/functional/legacy/options_spec.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/legacy/options_spec.lua b/test/functional/legacy/options_spec.lua index d7f5df3a1e..023cdd4ae1 100644 --- a/test/functional/legacy/options_spec.lua +++ b/test/functional/legacy/options_spec.lua @@ -42,6 +42,20 @@ describe('set', function() matches('E36: Not enough room', exc_exec('set wmh=1')) end) + it('winminheight works with tabline', function() + local screen = Screen.new(20, 11) + screen:attach() + source([[ + set wmh=0 stal=2 + split + split + split + split + tabnew + ]]) + matches('E36: Not enough room', exc_exec('set wmh=1')) + end) + it('scroll works', function() local screen = Screen.new(42, 16) screen:attach() |