1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-08 05:27:14 +09:00

LibLine: Handle Ctrl-C and Ctrl-D in a way similar to other line editors

Makes C-c print "^C" and continue prompting on a new line.
Also fixes a problem where an interrupted get_line() would need more
read()'s than required to update the display.
This commit is contained in:
AnotherTest 2020-08-20 20:04:55 +04:30 committed by Andreas Kling
parent c8cf465174
commit 238e87de4e
Notes: sideshowbarker 2024-07-19 03:21:28 +09:00
4 changed files with 81 additions and 38 deletions

View file

@ -168,6 +168,7 @@ void Editor::finish_edit()
if (!m_always_refresh) {
m_input_error = Error::Eof;
finish();
really_quit_event_loop();
}
}