diff options
author | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-07-25 09:53:56 +0800 |
---|---|---|
committer | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-07-25 09:53:56 +0800 |
commit | fa7daf1be9b67d70c3cde64cecdd4a76d2e8082b (patch) | |
tree | e5d57a85039180b3dc12f996bda4fe5fde38d711 /src/interactive/widgets/mark.rs | |
parent | 3baf7f31b91c71ba0acb2be886a47ccbd2b295fb (diff) |
Run rustfmt; use debug_assert; rename function
Diffstat (limited to 'src/interactive/widgets/mark.rs')
-rw-r--r-- | src/interactive/widgets/mark.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/interactive/widgets/mark.rs b/src/interactive/widgets/mark.rs index 702c187..8f8ef7c 100644 --- a/src/interactive/widgets/mark.rs +++ b/src/interactive/widgets/mark.rs @@ -1,7 +1,5 @@ use crate::interactive::{ - fit_string_graphemes_with_ellipsis, path_of, - widgets::get_name_color, - CursorDirection, + fit_string_graphemes_with_ellipsis, path_of, widgets::entry_color, CursorDirection, }; use dua::{ traverse::{Tree, TreeIndex}, @@ -234,7 +232,7 @@ impl MarkPane { modifier, ..Default::default() } - }, + } _ => Style::default(), }; let (path, path_len) = { @@ -260,7 +258,7 @@ impl MarkPane { _ => (path, num_path_graphemes), } }; - let fg_path = get_name_color(Color::Reset, !v.is_dir, true); + let fg_path = entry_color(Color::Reset, !v.is_dir, true); let path = Text::Styled( path.into(), Style { |