diff options
author | fredizzimo <fsundvik@gmail.com> | 2025-02-09 22:31:14 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-09 07:31:14 -0800 |
commit | af0cd9a9075117319808b8c0515cd86628992baf (patch) | |
tree | 0437eff3e74e2f5cf77cda59fbc3e516433f4621 /test/functional/ui/screen.lua | |
parent | 9198368f32dc0b4e2470b594f323691d45501442 (diff) | |
download | rneovim-af0cd9a9075117319808b8c0515cd86628992baf.tar.gz rneovim-af0cd9a9075117319808b8c0515cd86628992baf.tar.bz2 rneovim-af0cd9a9075117319808b8c0515cd86628992baf.zip |
test: screen.lua can check win_pos #32373
Also remove a hack in the multigrid "with winbar" test.
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r-- | test/functional/ui/screen.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua index 6a8e7df6a0..9ff29cd706 100644 --- a/test/functional/ui/screen.lua +++ b/test/functional/ui/screen.lua @@ -338,6 +338,7 @@ local ext_keys = { 'showmode', 'showcmd', 'ruler', + 'win_pos', 'float_pos', 'win_viewport', 'win_viewport_margins', @@ -357,6 +358,7 @@ local expect_keys = { request_cb = true, hl_groups = true, extmarks = true, + win_pos = true, } for _, v in ipairs(ext_keys) do @@ -426,6 +428,7 @@ end --- @field mouse_enabled? boolean --- --- @field win_viewport? table<integer,table<string,integer>> +--- @field win_pos? table<integer,table<string,integer>> --- @field float_pos? [integer,integer] --- @field hl_groups? table<string,integer> --- @@ -628,6 +631,9 @@ screen:redraw_debug() to show all intermediate screen states.]] if expected.win_viewport_margins == nil then extstate.win_viewport_margins = nil end + if expected.win_pos == nil then + extstate.win_pos = nil + end if expected.float_pos then expected.float_pos = deepcopy(expected.float_pos) @@ -1520,6 +1526,7 @@ function Screen:_extstate_repr(attr_state) float_pos = self.float_pos, win_viewport = win_viewport, win_viewport_margins = win_viewport_margins, + win_pos = self.win_position, } end |