Explorar el Código

Fix LS_COLORS 01 and 04 detection

Chet Gurevitch hace 8 años
padre
commit
afc9657434
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/style/lsc.rs

+ 2 - 2
src/style/lsc.rs

@@ -52,8 +52,8 @@ impl<'var> Pair<'var> {
             match num {
 
                 // Bold and italic
-                "1"  => style = style.bold(),
-                "4"  => style = style.underline(),
+                "1" | "01" => style = style.bold(),
+                "4" | "04" => style = style.underline(),
 
                 // Foreground colours
                 "30" => style = style.fg(Black),