diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-05-19 21:58:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-19 21:58:48 +0200 |
commit | 69853a622a1fa9b920171657a255648e532bd444 (patch) | |
tree | e9e6cdc4994938ea8531f724a597a36320dbc341 /test | |
parent | bb8d05f93220506d88f316b25b741d92a44ef973 (diff) | |
parent | 643cc94e7e8c0cc970c08a916baebb19075040e2 (diff) | |
download | rneovim-69853a622a1fa9b920171657a255648e532bd444.tar.gz rneovim-69853a622a1fa9b920171657a255648e532bd444.tar.bz2 rneovim-69853a622a1fa9b920171657a255648e532bd444.zip |
Merge pull request #18629 from famiu/fix/ui/winbar
fix(ui): make `winbar` properly equalize window heights for local value
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 bf99cd6117..af7736293c 100644 --- a/test/functional/ui/winbar_spec.lua +++ b/test/functional/ui/winbar_spec.lua @@ -345,4 +345,24 @@ describe('winbar', function() ]]) eq(1, meths.get_option('cmdheight')) 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) |