Clear cancellation_signal before firing fish_postexec event

Fix #2356
This commit is contained in:
Norio Nomura 2020-03-03 09:33:19 +09:00 committed by ridiculousfish
parent 17c569f6d5
commit 4f0fab04ad

View File

@ -2441,6 +2441,7 @@ static int read_i(parser_t &parser) {
wcstring_list_t argv(1, command);
event_fire_generic(parser, L"fish_preexec", &argv);
reader_run_command(parser, command);
parser.clear_cancel();
event_fire_generic(parser, L"fish_postexec", &argv);
// Allow any pending history items to be returned in the history array.
if (data->history) {