Переглянути джерело

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.
AnotherTest 4 роки тому
батько
коміт
4c98d00bef
1 змінених файлів з 2 додано та 0 видалено
  1. 2 0
      Libraries/LibLine/KeyCallbackMachine.cpp

+ 2 - 0
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;
 }
 
 }