fix: build failure (codeberg #10)

Reviewed-on: https://codeberg.org/iff/pay-respects/pulls/10
Co-authored-by: Integral <integral@member.fsf.org>
Co-committed-by: Integral <integral@member.fsf.org>
This commit is contained in:
Integral 2024-12-14 18:25:12 +00:00 committed by iff
parent aae2ce09f0
commit 7a76ab4d30

View file

@ -162,11 +162,11 @@ pub fn typo(suggest: &mut String, split_command: &[String], executables: &[Strin
let function = &function[args.to_owned()].trim_matches(|c| c == '(' || c == ')');
suggest_typo(
&split_command[index],
eval_shell_command(shell, function),
&eval_shell_command(shell, function),
executables,
)
} else {
suggest_typo(&split_command[index], match_list, executables)
suggest_typo(&split_command[index], &match_list, executables)
};
suggest.replace_range(placeholder, &command);