Procházet zdrojové kódy

Merge pull request #300 from chetgurevitch/master

Fix LS_COLORS 01 and 04 detection
Benjamin Sago před 8 roky
rodič
revize
6b86cc4615
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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),