From 861dca04f527dcdf92e25c0e8f9f59a789387997 Mon Sep 17 00:00:00 2001 From: Vadim1987 Date: Sun, 5 Jul 2026 11:30:34 +0200 Subject: [PATCH] fix(input): balance the draw stack on early return (A2) --- src/view/input/userInputView.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/view/input/userInputView.lua b/src/view/input/userInputView.lua index 73cbbd83..a9375317 100644 --- a/src/view/input/userInputView.lua +++ b/src/view/input/userInputView.lua @@ -160,7 +160,10 @@ function UserInputView:render_input(input, status, time) for l, s in ipairs(visible) do local ln = l + vc.offset local tl = string.ulen(s) - if not tl then return end + if not tl then + gfx.pop() + return + end for c = 1, tl do local char = string.usub(s, c, c)