diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-05-28 10:40:07 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-07-10 17:24:29 +0800 |
commit | 99e829871173552374822ed922b785f0195f191c (patch) | |
tree | cff25f28d5b8cd96de25603f3d9bf1e94ff4679a /test/functional/ui/float_spec.lua | |
parent | f7d6f472f7a2024a2de4f9ed785395196afa7c32 (diff) | |
download | rneovim-99e829871173552374822ed922b785f0195f191c.tar.gz rneovim-99e829871173552374822ed922b785f0195f191c.tar.bz2 rneovim-99e829871173552374822ed922b785f0195f191c.zip |
fix(float): fix float window with winbar cannot have screen height
Diffstat (limited to 'test/functional/ui/float_spec.lua')
-rw-r--r-- | test/functional/ui/float_spec.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/functional/ui/float_spec.lua b/test/functional/ui/float_spec.lua index c5e5a3fd8f..71bdd2d830 100644 --- a/test/functional/ui/float_spec.lua +++ b/test/functional/ui/float_spec.lua @@ -7896,8 +7896,8 @@ describe('float window', function() ]]} end - -- add a border - meths.win_set_config(win1, {relative='editor', width=15, height=3, row=0, col=4, border = 'single'}) + -- resize and add a border + meths.win_set_config(win1, {relative='editor', width=15, height=4, row=0, col=4, border = 'single'}) if multigrid then screen:expect{grid=[[ @@ -7923,6 +7923,7 @@ describe('float window', function() {5:│}{3:floaty bar }{5:│}| {5:│}{1: }{5:│}| {5:│}{2:~ }{5:│}| + {5:│}{2:~ }{5:│}| {5:└───────────────┘}| ]], float_pos={ [4] = {{id = 1001}, "NW", 1, 0, 4, true, 50}; @@ -7936,8 +7937,8 @@ describe('float window', function() {0:~ }{5:│}{3:floaty bar }{5:│}{0: }| {0:~ }{5:│}{1: }{5:│}{0: }| {0:~ }{5:│}{2:~ }{5:│}{0: }| + {0:~ }{5:│}{2:~ }{5:│}{0: }| {0:~ }{5:└───────────────┘}{0: }| - {0:~ }| | ]]} end |