From f6932dec5d894576c10e7eb6243a516a9dff9153 Mon Sep 17 00:00:00 2001 From: zhuchunyan Date: Fri, 16 Sep 2022 21:57:41 +0800 Subject: [PATCH] Fix illegal option in fzf preview window --- src/util.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util.rs b/src/util.rs index b3b7fe0..495327b 100644 --- a/src/util.rs +++ b/src/util.rs @@ -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%"])