Ignore graphemes of width 0 when writing to buffer
This commit is contained in:
parent
37634139b0
commit
6b9e4cbc63
3 changed files with 6 additions and 4 deletions
|
|
@ -65,7 +65,7 @@ impl WidthDB {
|
|||
.queue(MoveTo(0, 0))?
|
||||
.queue(Print(&grapheme))?;
|
||||
out.flush()?;
|
||||
let width = crossterm::cursor::position()?.0.max(1) as u8;
|
||||
let width = crossterm::cursor::position()?.0 as u8;
|
||||
self.known.insert(grapheme, width);
|
||||
}
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue