Fix illegal option in fzf preview window

This commit is contained in:
zhuchunyan 2022-09-16 21:57:41 +08:00
parent e8a1e11848
commit f6932dec5d
1 changed files with 2 additions and 2 deletions

View File

@ -56,9 +56,9 @@ impl Fzf {
const LS_ARGS: &str = if cfg!(target_os = "linux") {
"--color=always --group-directories-first"
} else if cfg!(target_os = "macos") {
"--color=always"
} else {
""
} else {
"--color=always"
};
command
.args(&[&format!(r"--preview=\command -p ls -Cp {LS_ARGS} {{2..}}"), "--preview-window=down,30%"])