1
Fork 0
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:
AnotherTest 2020-06-01 16:26:31 +04:30 committed by Andreas Kling
parent 29029568ee
commit 889a8e7d0f
3 changed files with 31 additions and 15 deletions

View file

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