diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-08-18 13:52:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-18 13:52:59 +0200 |
commit | 9bbac874f9e56c56e8f891ef691df293d11f11c6 (patch) | |
tree | bd3191e119459b2622f860e7345623a95c350a1d /test/functional/ui/screen.lua | |
parent | d351f1c871ee9901db389e164789ea33d3e1871f (diff) | |
parent | 628f8f3dfdbc734096b04c3040c1f4d2cea873c4 (diff) | |
download | rneovim-9bbac874f9e56c56e8f891ef691df293d11f11c6.tar.gz rneovim-9bbac874f9e56c56e8f891ef691df293d11f11c6.tar.bz2 rneovim-9bbac874f9e56c56e8f891ef691df293d11f11c6.zip |
Merge pull request #10798 from bfredl/multifix
multigrid: fixes
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r-- | test/functional/ui/screen.lua | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua index 81a15cada2..df0fce4199 100644 --- a/test/functional/ui/screen.lua +++ b/test/functional/ui/screen.lua @@ -316,9 +316,10 @@ local ext_keys = { -- cmdline_block: Expected ext_cmdline block (for function definitions) -- wildmenu_items: Expected items for ext_wildmenu -- wildmenu_pos: Expected position for ext_wildmenu -function Screen:expect(expected, attr_ids, attr_ignore) +function Screen:expect(expected, attr_ids, attr_ignore, ...) local grid, condition = nil, nil local expected_rows = {} + assert(next({...}) == nil, "invalid args to expect()") if type(expected) == "table" then assert(not (attr_ids ~= nil or attr_ignore ~= nil)) local is_key = {grid=true, attr_ids=true, attr_ignore=true, condition=true, @@ -1211,7 +1212,11 @@ function Screen:render(headers, attr_state, preview) local rv = {} for igrid,grid in pairs(self._grids) do if headers then - table.insert(rv, "## grid "..igrid) + local suffix = "" + if igrid > 1 and self.win_position[igrid] == nil and self.float_pos[igrid] == nil then + suffix = " (hidden)" + end + table.insert(rv, "## grid "..igrid..suffix) end for i = 1, grid.height do local cursor = self._cursor.grid == igrid and self._cursor.row == i @@ -1491,7 +1496,7 @@ function Screen:_equal_attrs(a, b) a.underline == b.underline and a.undercurl == b.undercurl and a.italic == b.italic and a.reverse == b.reverse and a.foreground == b.foreground and a.background == b.background and - a.special == b.special + a.special == b.special and a.blend == b.blend end function Screen:_equal_info(a, b) |