diff options
-rw-r--r-- | widgets/dirlist.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/widgets/dirlist.go b/widgets/dirlist.go index 7d427dcc..b58a9a5c 100644 --- a/widgets/dirlist.go +++ b/widgets/dirlist.go @@ -286,12 +286,12 @@ func (dirlist *DirectoryList) renderDir( var style tcell.Style r, u, _ := dirlist.GetRUECount(path) - switch { - case r > 0: - styles = append(styles, config.STYLE_DIRLIST_RECENT) - case u > 0: + if u > 0 { styles = append(styles, config.STYLE_DIRLIST_UNREAD) } + if r > 0 { + styles = append(styles, config.STYLE_DIRLIST_RECENT) + } conf = conf.ForFolder(path) if selected { style = conf.GetComposedStyleSelected( |