Skip to content

Commit

Permalink
Highlight README~ as temp, not immediate
Browse files Browse the repository at this point in the history
Fixes #313.
  • Loading branch information
ogham committed Oct 14, 2018
1 parent c2bb986 commit 57e4c08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/info/filetype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ impl FileColours for FileExtensions {
use ansi_term::Colour::*;

Some(match file {
f if self.is_temp(f) => Fixed(244).normal(),
f if self.is_immediate(f) => Yellow.bold().underline(),
f if self.is_image(f) => Fixed(133).normal(),
f if self.is_video(f) => Fixed(135).normal(),
Expand All @@ -109,7 +110,6 @@ impl FileColours for FileExtensions {
f if self.is_crypto(f) => Fixed(109).normal(),
f if self.is_document(f) => Fixed(105).normal(),
f if self.is_compressed(f) => Red.normal(),
f if self.is_temp(f) => Fixed(244).normal(),
f if self.is_compiled(f) => Fixed(137).normal(),
_ => return None,
})
Expand Down

0 comments on commit 57e4c08

Please sign in to comment.