mirror of https://github.com/helix-editor/helix
refactor: use type aliases instead of fully writing out the type
parent
fae93aa308
commit
488e9552fd
|
@ -654,7 +654,7 @@ pub fn file_explorer(
|
||||||
|
|
||||||
let columns = [PickerColumn::new(
|
let columns = [PickerColumn::new(
|
||||||
"path",
|
"path",
|
||||||
|(path, is_dir): &(PathBuf, bool), (root, directory_style): &(PathBuf, Style)| {
|
|(path, is_dir): &ExplorerItem, (root, directory_style): &ExplorerData| {
|
||||||
let name = path.strip_prefix(root).unwrap_or(path).to_string_lossy();
|
let name = path.strip_prefix(root).unwrap_or(path).to_string_lossy();
|
||||||
if *is_dir {
|
if *is_dir {
|
||||||
Span::styled(format!("{}/", name), *directory_style).into()
|
Span::styled(format!("{}/", name), *directory_style).into()
|
||||||
|
|
Loading…
Reference in New Issue