fix: issue 386 --only-file displays full paths even without --full-paths

This commit is contained in:
wugeer
2024-05-13 22:09:19 +08:00
committed by andy.boot
parent a34e78f912
commit 5f76db27c9
+1 -2
View File
@@ -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")