diff options
author | Famiu Haque <famiuhaque@protonmail.com> | 2022-05-19 01:09:52 +0600 |
---|---|---|
committer | Famiu Haque <famiuhaque@protonmail.com> | 2022-05-19 19:14:54 +0600 |
commit | 643cc94e7e8c0cc970c08a916baebb19075040e2 (patch) | |
tree | 1f0ef6a293eabe0ebf547f8c026e8c9eea1434db /test | |
parent | 288819c9cc8620fdb749721618bd43c479a9e500 (diff) | |
download | rneovim-643cc94e7e8c0cc970c08a916baebb19075040e2.tar.gz rneovim-643cc94e7e8c0cc970c08a916baebb19075040e2.tar.bz2 rneovim-643cc94e7e8c0cc970c08a916baebb19075040e2.zip |
fix(ui): make `winbar` properly equalize window heights for local value
Fixes `'winbar'` not properly equalizing window heights for splits when
the global value is empty and a window-local value is set instead.
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/ui/winbar_spec.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/functional/ui/winbar_spec.lua b/test/functional/ui/winbar_spec.lua index abc6088801..e5cdc53b93 100644 --- a/test/functional/ui/winbar_spec.lua +++ b/test/functional/ui/winbar_spec.lua @@ -194,4 +194,24 @@ describe('winbar', function() meths.input_mouse('left', 'press', '', 0, 5, 1) eq({5, 1}, meths.win_get_cursor(0)) end) + it('properly equalizes window height for window-local value', function() + command('set equalalways | set winbar= | setlocal winbar=a | split') + command('setlocal winbar= | split') + command('setlocal winbar=b | split') + screen:expect([[ + {1:b }| + ^ | + {4:[No Name] }| + {1:b }| + | + {2:[No Name] }| + | + {3:~ }| + {2:[No Name] }| + {1:a }| + | + {2:[No Name] }| + | + ]]) + end) end) |