This was a bug introduced by 28fce347ff7cb743a24c77d055279a240888c8ca — it should have updated both places it does this in the function, rather than just one.
@@ -61,7 +61,10 @@ impl<'a, 'dir> FileName<'a, 'dir> {
}
if !target.name.is_empty() {
- bits.push(FileName::new(&target, self.colours).style().paint(target.name));
+ let target = FileName::new(&target, self.colours);
+ for bit in target.coloured_file_name() {
+ bits.push(bit);
+ }
},