From afb44d1825120a3cb40c118446e10e52ecfea08f Mon Sep 17 00:00:00 2001 From: sxyazi Date: Sun, 24 Sep 2023 12:04:33 +0800 Subject: [PATCH] .. --- app/src/manager/folder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/manager/folder.rs b/app/src/manager/folder.rs index 255686bc..72ea0868 100644 --- a/app/src/manager/folder.rs +++ b/app/src/manager/folder.rs @@ -60,7 +60,7 @@ impl<'a> Folder<'a> { .unwrap_or_else(Style::new) } - fn highlighted_style<'b>(&'b self, file: &'b File) -> Vec { + fn highlighted_item<'b>(&'b self, file: &'b File) -> Vec { let short = short_path(file.url(), &self.folder.cwd); let v = self.is_find.then_some(()).and_then(|_| { @@ -120,7 +120,7 @@ impl<'a> Widget for Folder<'a> { let mut spans = Vec::with_capacity(10); spans.push(Span::raw(format!(" {} ", Self::icon(f)))); - spans.extend(self.highlighted_style(f)); + spans.extend(self.highlighted_item(f)); if let Some(link_to) = f.link_to() { if MANAGER.show_symlink {