Explorar o código

true -> false

nwin %!s(int64=11) %!d(string=hai) anos
pai
achega
beaf8789ce
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      src/column.rs
  2. 1 1
      src/file.rs

+ 1 - 1
src/column.rs

@@ -86,7 +86,7 @@ impl Cell {
     pub fn paint(style: Style, string: &str) -> Cell {
         Cell {
             text: style.paint(string).to_string(),
-            length: string.width(true),
+            length: string.width(false),
         }
     }
 }

+ 1 - 1
src/file.rs

@@ -173,7 +173,7 @@ impl<'a> File<'a> {
     /// characters are 1 columns wide, but in some contexts, certain
     /// characters are actually 2 columns wide.
     pub fn file_name_width(&self) -> usize {
-        self.name.as_slice().width(true)
+        self.name.as_slice().width(false)
     }
 
     /// Assuming the current file is a symlink, follows the link and