From feaad96f1e4a2b56791618e15093f883cd13aefe Mon Sep 17 00:00:00 2001 From: Hleb Rubanau Date: Sat, 16 May 2026 13:11:40 +0200 Subject: [PATCH] fix(views/userInput): crash on space typed [#131] Stricter check for actual presence of error lines in 'parsed error' container Closes: #131 --- src/view/input/userInputView.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/view/input/userInputView.lua b/src/view/input/userInputView.lua index b0d429be..d7130d75 100644 --- a/src/view/input/userInputView.lua +++ b/src/view/input/userInputView.lua @@ -189,8 +189,8 @@ function UserInputView:render_input(input, status, time) color = Color[ci] or colors.fg end end - if perr and ln > el or - (ln == el and (c > ec or ec == 1)) then + if el and ln > el or + (ln == el and (ec and c > ec or ec == 1)) then color = cf_colors.input.error end local selected = (function()