Просмотр исходного кода

Fix LS_COLORS 01 and 04 detection

Chet Gurevitch 8 лет назад
Родитель
Сommit
afc9657434
1 измененных файлов с 2 добавлено и 2 удалено
  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),