aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/float_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-05-27 19:29:42 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-07-10 17:24:29 +0800
commitf7d6f472f7a2024a2de4f9ed785395196afa7c32 (patch)
tree93540c31fe395e1667791a4b9174ead1e92fa41f /test/functional/ui/float_spec.lua
parent2966cfe21f8e19f684caf8e9253f40dad107f5ba (diff)
downloadrneovim-f7d6f472f7a2024a2de4f9ed785395196afa7c32.tar.gz
rneovim-f7d6f472f7a2024a2de4f9ed785395196afa7c32.tar.bz2
rneovim-f7d6f472f7a2024a2de4f9ed785395196afa7c32.zip
fix(float): fix float window border drawing with winbar
Diffstat (limited to 'test/functional/ui/float_spec.lua')
-rw-r--r--test/functional/ui/float_spec.lua46
1 files changed, 46 insertions, 0 deletions
diff --git a/test/functional/ui/float_spec.lua b/test/functional/ui/float_spec.lua
index fdd1504b13..c5e5a3fd8f 100644
--- a/test/functional/ui/float_spec.lua
+++ b/test/functional/ui/float_spec.lua
@@ -7895,6 +7895,52 @@ 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'})
+
+ if multigrid then
+ screen:expect{grid=[[
+ ## grid 1
+ [2:----------------------------------------]|
+ [2:----------------------------------------]|
+ [2:----------------------------------------]|
+ [2:----------------------------------------]|
+ [2:----------------------------------------]|
+ [2:----------------------------------------]|
+ [3:----------------------------------------]|
+ ## grid 2
+ ^ |
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ ## grid 3
+ |
+ ## grid 4
+ {5:┌───────────────┐}|
+ {5:│}{3:floaty bar }{5:│}|
+ {5:│}{1: }{5:│}|
+ {5:│}{2:~ }{5:│}|
+ {5:└───────────────┘}|
+ ]], float_pos={
+ [4] = {{id = 1001}, "NW", 1, 0, 4, true, 50};
+ }, win_viewport={
+ [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1};
+ [4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1};
+ }}
+ else
+ screen:expect{grid=[[
+ ^ {5:┌───────────────┐} |
+ {0:~ }{5:│}{3:floaty bar }{5:│}{0: }|
+ {0:~ }{5:│}{1: }{5:│}{0: }|
+ {0:~ }{5:│}{2:~ }{5:│}{0: }|
+ {0:~ }{5:└───────────────┘}{0: }|
+ {0:~ }|
+ |
+ ]]}
+ end
end)
end