mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-15 01:01:15 -03:00
fix comments on #516. Split reader_interrupted into a reader_interrupted and a reader_reading_interrupted
This commit is contained in:
@@ -657,11 +657,17 @@ void reader_reset_interrupted()
|
||||
|
||||
int reader_interrupted()
|
||||
{
|
||||
int res=interrupted;
|
||||
int res = interrupted;
|
||||
if (res)
|
||||
{
|
||||
interrupted=0;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
int reader_reading_interrupted()
|
||||
{
|
||||
int res = reader_interrupted();
|
||||
if (res && data && data->interruptible)
|
||||
{
|
||||
reader_exit(1, 0);
|
||||
|
||||
Reference in New Issue
Block a user