mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-24 09:21:16 -03:00
Remove triggerable assert in unescape_string_internal
Fixes #4954 - in a hacky way.
This commit is contained in:
@@ -1078,6 +1078,9 @@ void completer_t::complete_param_expand(const wcstring &str, bool do_file,
|
||||
bool complete_from_start = !complete_from_separator || !string_prefixes_string(L"-", str);
|
||||
|
||||
if (complete_from_separator) {
|
||||
// FIXME: This just cuts the token,
|
||||
// so any quoting or braces gets lost.
|
||||
// See #4954.
|
||||
const wcstring sep_string = wcstring(str, sep_index + 1);
|
||||
std::vector<completion_t> local_completions;
|
||||
if (expand_string(sep_string, &local_completions, flags, NULL) == EXPAND_ERROR) {
|
||||
|
||||
Reference in New Issue
Block a user