mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
tweak reader interrupt behavior
This commit is contained in:
parent
a3b497b271
commit
b6bd6e399d
1 changed files with 3 additions and 0 deletions
|
@ -660,6 +660,9 @@ int reader_reading_interrupted()
|
||||||
{
|
{
|
||||||
reader_exit(1, 0);
|
reader_exit(1, 0);
|
||||||
parser_t::skip_all_blocks();
|
parser_t::skip_all_blocks();
|
||||||
|
// We handled the interrupt ourselves, our caller doesn't need to
|
||||||
|
// handle it.
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue