diff options
Diffstat (limited to 'src/output/lines.rs')
-rw-r--r-- | src/output/lines.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/output/lines.rs b/src/output/lines.rs index b61494f..bd1fcdc 100644 --- a/src/output/lines.rs +++ b/src/output/lines.rs @@ -1,5 +1,6 @@ use colours::Colours; use file::File; +use super::filename; #[derive(Clone, Copy, Debug, PartialEq)] pub struct Lines { @@ -10,7 +11,7 @@ pub struct Lines { impl Lines { pub fn view(&self, files: &[File]) { for file in files { - println!("{}", file.file_name_view(&self.colours)); + println!("{}", filename(file, &self.colours)); } } } |