From 982d2f253168be9dbfecd0c1a41ec9cff8017a4e Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Thu, 9 Jul 2026 03:46:19 +0200 Subject: [PATCH] =?UTF-8?q?fix(test):=20`screen:expect({none=3D=E2=80=A6})?= =?UTF-8?q?`=20with=20no=20any/grid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: `screen:expect({none=…})` with no any/grid crashed (concat on nil) because actual_rows was only rendered when any or grid was present. Solution: Update the condition. --- test/functional/ui/screen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua index 3e2b84094e..f227577444 100644 --- a/test/functional/ui/screen.lua +++ b/test/functional/ui/screen.lua @@ -551,7 +551,7 @@ function Screen:expect(expected, attr_ids, ...) end local actual_rows - if expected.any or grid then + if expected.any or expected.none or grid then actual_rows = self:render(not (expected.any or expected.none), attr_state) end