fix: msys2 path (github #12)

This commit is contained in:
莯凛 2024-11-24 20:00:31 +08:00 committed by GitHub
parent 6feb88d48f
commit 659235bf2e
5 changed files with 80 additions and 13 deletions

View file

@ -16,6 +16,9 @@ pub fn highlight_difference(
if split_suggested_command == split_last_command {
return None;
}
if split_suggested_command.is_empty() {
return None;
}
let privileged = PRIVILEGE_LIST.contains(&split_suggested_command[0].as_str());