@@ -309,7 +309,7 @@ impl Buffer {
309 index += width;
309 index += width;
310 x_offset += width;
310 x_offset += width;
312− if ellipsis && x_offset - (x as usize) < string.as_ref().chars().count() {
312+ if ellipsis && x_offset - (x as usize) < UnicodeWidthStr::width(string.as_ref()) {
313 self.content[index].set_symbol("…");
313 self.content[index].set_symbol("…");
315 (x_offset as u16, y)
315 (x_offset as u16, y)