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.
This commit is contained in:
AnotherTest 2021-01-06 20:29:43 +03:30 committed by Andreas Kling
parent 277fc41f47
commit 4c98d00bef
Notes: sideshowbarker 2024-07-19 00:04:13 +09:00

View file

@ -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;
}
}