diff options
author | Josh Rahm <rahm@google.com> | 2022-09-12 10:57:59 -0600 |
---|---|---|
committer | Josh Rahm <rahm@google.com> | 2022-09-12 10:57:59 -0600 |
commit | 040b05d7d01defe16e4b31a6fd9c863fd2443091 (patch) | |
tree | 5e4a295fe310c73dfc2fe196708c49b4c0b41396 /test/functional/ui/winbar_spec.lua | |
parent | 52ce04a002a882da19bb2c78d1fd8eb4825d669d (diff) | |
parent | fd70e2bff2440181f63fe124738cf2a025d1e6a5 (diff) | |
download | rneovim-040b05d7d01defe16e4b31a6fd9c863fd2443091.tar.gz rneovim-040b05d7d01defe16e4b31a6fd9c863fd2443091.tar.bz2 rneovim-040b05d7d01defe16e4b31a6fd9c863fd2443091.zip |
Merge remote-tracking branch 'upstream/master' into floattitle
Diffstat (limited to 'test/functional/ui/winbar_spec.lua')
-rw-r--r-- | test/functional/ui/winbar_spec.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/ui/winbar_spec.lua b/test/functional/ui/winbar_spec.lua index 8976c4371f..ece27ec3ff 100644 --- a/test/functional/ui/winbar_spec.lua +++ b/test/functional/ui/winbar_spec.lua @@ -7,6 +7,8 @@ local meths = helpers.meths local eq = helpers.eq local poke_eventloop = helpers.poke_eventloop local feed = helpers.feed +local funcs = helpers.funcs +local curwin = helpers.curwin local pcall_err = helpers.pcall_err describe('winbar', function() @@ -48,6 +50,11 @@ describe('winbar', function() {3:~ }| | ]]) + -- winbar is excluded from the heights returned by winheight() and getwininfo() + eq(11, funcs.winheight(0)) + local win_info = funcs.getwininfo(curwin().id)[1] + eq(11, win_info.height) + eq(1, win_info.winbar) end) it('works with custom \'fillchars\' value', function() |