diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-08-17 21:46:11 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2019-08-17 21:46:11 +0200 |
commit | 6b2d67eb59e915242e33ed0e9923cd7a80213360 (patch) | |
tree | 877a17590aed4f7bcf57b4033722ef060a2ef882 /test/functional/ui/screen.lua | |
parent | 3397b8c51a6d65a24bb2d9860e27fb3d8770dba6 (diff) | |
download | rneovim-6b2d67eb59e915242e33ed0e9923cd7a80213360.tar.gz rneovim-6b2d67eb59e915242e33ed0e9923cd7a80213360.tar.bz2 rneovim-6b2d67eb59e915242e33ed0e9923cd7a80213360.zip |
test/ui: properly test win_hide by explicitly marking hidden grids
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r-- | test/functional/ui/screen.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua index d8ad9c9879..517e8590a2 100644 --- a/test/functional/ui/screen.lua +++ b/test/functional/ui/screen.lua @@ -1212,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 |