This commit is contained in:
Chester Liu 2021-03-26 20:34:16 +08:00
parent 13b3635407
commit 33dd8fd2ca
2 changed files with 5 additions and 2 deletions

View File

@ -239,9 +239,11 @@ impl<'a, 'dir, C: Colours> FileName<'a, 'dir, C> {
fn classify_char(&self) -> Option<&'static str> { fn classify_char(&self) -> Option<&'static str> {
if self.file.is_directory() { if self.file.is_directory() {
Some("/") Some("/")
} else if self.file.is_link() { }
else if self.file.is_link() {
Some("@") Some("@")
} else { }
else {
None None
} }
} }

View File

@ -468,6 +468,7 @@ impl<'a, 'f> Table<'a> {
Column::Octal => { Column::Octal => {
self.octal_permissions(file).render(self.theme.ui.octal) self.octal_permissions(file).render(self.theme.ui.octal)
} }
Column::Timestamp(TimeType::Modified) => { Column::Timestamp(TimeType::Modified) => {
file.modified_time().render(self.theme.ui.date, &self.env.tz, self.time_format) file.modified_time().render(self.theme.ui.date, &self.env.tz, self.time_format)
} }