From 4c98d00befcf454830a312ffb576b73b24aaf65e Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Wed, 6 Jan 2021 20:29:43 +0330 Subject: [PATCH] LibLine: Don't ignore ^C inputs when there are no registered handlers Some people really like their ^C's, let's not make them sad. --- Libraries/LibLine/KeyCallbackMachine.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Libraries/LibLine/KeyCallbackMachine.cpp b/Libraries/LibLine/KeyCallbackMachine.cpp index 5679d098d9..8f4272810a 100644 --- a/Libraries/LibLine/KeyCallbackMachine.cpp +++ b/Libraries/LibLine/KeyCallbackMachine.cpp @@ -106,6 +106,8 @@ void KeyCallbackMachine::interrupted(Editor& editor) m_current_matching_keys.clear(); if (auto callback = m_key_callbacks.get({ ctrl('C') }); callback.has_value()) m_should_process_this_key = callback.value()->callback(editor); + else + m_should_process_this_key = true; } }