mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-25 10:11:17 -03:00
Express cancellation as a possible result of expand_string
This allows us to properly thread control-C signals from command substitutions into the expanding string.
This commit is contained in:
@@ -680,6 +680,9 @@ void completer_t::complete_cmd(const wcstring &str_cmd) {
|
||||
this->expand_flags() | expand_flag::special_for_command |
|
||||
expand_flag::for_completions | expand_flag::executables_only,
|
||||
ctx);
|
||||
if (result == expand_result_t::cancel) {
|
||||
return;
|
||||
}
|
||||
if (result != expand_result_t::error && this->wants_descriptions()) {
|
||||
this->complete_cmd_desc(str_cmd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user