Skip to content

Commit 57e4c08

Browse files
committed
Highlight README~ as temp, not immediate
Fixes #313.
1 parent c2bb986 commit 57e4c08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/info/filetype.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ impl FileColours for FileExtensions {
101101
use ansi_term::Colour::*;
102102

103103
Some(match file {
104+
f if self.is_temp(f) => Fixed(244).normal(),
104105
f if self.is_immediate(f) => Yellow.bold().underline(),
105106
f if self.is_image(f) => Fixed(133).normal(),
106107
f if self.is_video(f) => Fixed(135).normal(),
@@ -109,7 +110,6 @@ impl FileColours for FileExtensions {
109110
f if self.is_crypto(f) => Fixed(109).normal(),
110111
f if self.is_document(f) => Fixed(105).normal(),
111112
f if self.is_compressed(f) => Red.normal(),
112-
f if self.is_temp(f) => Fixed(244).normal(),
113113
f if self.is_compiled(f) => Fixed(137).normal(),
114114
_ => return None,
115115
})

0 commit comments

Comments
 (0)