From 5f76db27c9160086b3373c8afc82e95ff3ab540d Mon Sep 17 00:00:00 2001 From: wugeer <1284057728@qq.com> Date: Mon, 13 May 2024 22:09:19 +0800 Subject: [PATCH] fix: issue 386 --only-file displays full paths even without --full-paths --- src/config.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index edc1113..5bbe8c6 100644 --- a/src/config.rs +++ b/src/config.rs @@ -52,10 +52,9 @@ impl Config { Some(true) == self.ignore_hidden || options.get_flag("ignore_hidden") } pub fn get_full_paths(&self, options: &ArgMatches) -> bool { - // If we are only showing files, always show full paths Some(true) == self.display_full_paths || options.get_flag("display_full_paths") - || self.get_only_file(options) + // || self.get_only_file(options) } pub fn get_reverse(&self, options: &ArgMatches) -> bool { Some(true) == self.reverse || options.get_flag("reverse")