Clear cancellation signals after handling a readline command

If a readline command is bound to a key sequence which also sends a
signal, then fish will set the cancel flag in addition to handling the
command. But this cancel flag is then persistent. Ensure it gets cleared
after each command.

Fixes #6937
This commit is contained in:
ridiculousfish 2020-04-29 13:38:15 -07:00
parent 8d43439640
commit 8c4c9d050d

View File

@ -3552,6 +3552,10 @@ maybe_t<wcstring> reader_data_t::readline(int nchars_or_0) {
history_search.reset();
}
// Readline commands may be bound to \cc which also sets the cancel flag.
// See #6937.
parser().clear_cancel();
rls.last_cmd = readline_cmd;
} else {
// Ordinary char.