Explorar el Código

docs(man): Documentation of 'sn' and 'sb' conflicted with later docs

Robert Minsk hace 2 años
padre
commit
097d6276c2
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. 2 2
      man/eza_colors.5.md
  2. 2 2
      src/theme/ui_styles.rs

+ 2 - 2
man/eza_colors.5.md

@@ -119,7 +119,7 @@ LIST OF CODES
 : the extended attribute indicator
 : the extended attribute indicator
 
 
 `sn`
 `sn`
-: the numbers of a file’s size (sets `nb`, `nk`, `nm`, `ng` and `nh`)
+: the numbers of a file’s size (sets `nb`, `nk`, `nm`, `ng` and `nt`)
 
 
 `nb`
 `nb`
 : the numbers of a file’s size if it is lower than 1 KB/Kib
 : the numbers of a file’s size if it is lower than 1 KB/Kib
@@ -137,7 +137,7 @@ LIST OF CODES
 : the numbers of a file’s size if it is 1 TB/TiB or higher
 : the numbers of a file’s size if it is 1 TB/TiB or higher
 
 
 `sb`
 `sb`
-: the units of a file’s size (sets `ub`, `uk`, `um`, `ug` and `uh`)
+: the units of a file’s size (sets `ub`, `uk`, `um`, `ug` and `ut`)
 
 
 `ub`
 `ub`
 : the units of a file’s size if it is lower than 1 KB/Kib
 : the units of a file’s size if it is lower than 1 KB/Kib

+ 2 - 2
src/theme/ui_styles.rs

@@ -194,12 +194,12 @@ impl UiStyles {
             "nk" => self.size.number_kilo         = pair.to_style(),
             "nk" => self.size.number_kilo         = pair.to_style(),
             "nm" => self.size.number_mega         = pair.to_style(),
             "nm" => self.size.number_mega         = pair.to_style(),
             "ng" => self.size.number_giga         = pair.to_style(),
             "ng" => self.size.number_giga         = pair.to_style(),
-            "nt" => self.size.number_huge         = pair.to_style(),
+            "nh" => self.size.number_huge         = pair.to_style(),
             "ub" => self.size.unit_byte           = pair.to_style(),
             "ub" => self.size.unit_byte           = pair.to_style(),
             "uk" => self.size.unit_kilo           = pair.to_style(),
             "uk" => self.size.unit_kilo           = pair.to_style(),
             "um" => self.size.unit_mega           = pair.to_style(),
             "um" => self.size.unit_mega           = pair.to_style(),
             "ug" => self.size.unit_giga           = pair.to_style(),
             "ug" => self.size.unit_giga           = pair.to_style(),
-            "ut" => self.size.unit_huge           = pair.to_style(),
+            "uh" => self.size.unit_huge           = pair.to_style(),
             "df" => self.size.major               = pair.to_style(),
             "df" => self.size.major               = pair.to_style(),
             "ds" => self.size.minor               = pair.to_style(),
             "ds" => self.size.minor               = pair.to_style(),