From e523a38bd2665a1a487382c5042d94770e4087af Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 6 Dec 2021 04:32:24 -0500 Subject: better (i think?) handling of weird character widths control codes are ignored completely, and everything else defaults to 1 instead of 0 --- src/cell.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cell.rs') diff --git a/src/cell.rs b/src/cell.rs index 7262c8d..857c9e2 100644 --- a/src/cell.rs +++ b/src/cell.rs @@ -36,7 +36,7 @@ impl Cell { // strings in this context should always be an arbitrary character // followed by zero or more zero-width characters, so we should only // have to look at the first character - self.set_wide(c.width().unwrap_or(0) > 1); + self.set_wide(c.width().unwrap_or(1) > 1); self.attrs = a; } -- cgit v1.2.3-54-g00ecf