mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 20:16:12 +08:00
tweak reader interrupt behavior
This commit is contained in:
parent
a3b497b271
commit
b6bd6e399d
|
@ -660,6 +660,9 @@ int reader_reading_interrupted()
|
|||
{
|
||||
reader_exit(1, 0);
|
||||
parser_t::skip_all_blocks();
|
||||
// We handled the interrupt ourselves, our caller doesn't need to
|
||||
// handle it.
|
||||
return 0;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user