From e1e04884b917b8add061121a9463977e61b3cb25 Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Sun, 2 Jul 2023 13:44:42 +0330 Subject: [PATCH] LibLine: Handle any errors propagated through refresh_display() This can only realistically happen when the terminal no longer exists, so quitting with an error here is the better solution as the application will soon be killed anyway. Fixes #19742. Fixes #19017. --- Userland/Libraries/LibLine/Editor.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Userland/Libraries/LibLine/Editor.cpp b/Userland/Libraries/LibLine/Editor.cpp index 1840148223..7d68d9fa23 100644 --- a/Userland/Libraries/LibLine/Editor.cpp +++ b/Userland/Libraries/LibLine/Editor.cpp @@ -759,12 +759,16 @@ auto Editor::get_line(DeprecatedString const& prompt) -> Resulton_activation = [&] { if (try_update_once().is_error()) loop.quit(Exit);