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
|
|
@ -142,7 +142,9 @@ impl Buffer {
|
|||
|
||||
for grapheme in content.graphemes(true) {
|
||||
let width = widthdb.grapheme_width(grapheme);
|
||||
self.write_grapheme(pos.x, y, width, grapheme, style);
|
||||
if width > 0 {
|
||||
self.write_grapheme(pos.x, y, width, grapheme, style);
|
||||
}
|
||||
pos.x += width as i32;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue