mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 15:16:40 +08:00
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:
parent
8d43439640
commit
8c4c9d050d
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user