mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 17:25:07 +00:00
LibLine: Handle interrupts again
This commit makes LibLine handle interrupts (as reported via interrupted() and resized()) again. There is a little catch with the shell: ``` $ ls | pipe> <C-c> (prompt stays here until a key is pressed) ```
This commit is contained in:
parent
29029568ee
commit
889a8e7d0f
3 changed files with 31 additions and 15 deletions
|
@ -133,7 +133,7 @@ int main(int argc, char** argv)
|
|||
}
|
||||
|
||||
editor->on_interrupt_handled = [&] {
|
||||
if (!shell->should_read_more()) {
|
||||
if (shell->should_read_more()) {
|
||||
shell->finish_command();
|
||||
editor->finish();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue