mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-11-28 12:42:09 +03:00
Trait width method use refactor
This commit is contained in:
parent
a6cadddef4
commit
ed1a745442
@ -309,7 +309,7 @@ impl Buffer {
|
||||
index += width;
|
||||
x_offset += width;
|
||||
}
|
||||
if ellipsis && x_offset - (x as usize) < UnicodeWidthStr::width(string.as_ref()) {
|
||||
if ellipsis && x_offset - (x as usize) < string.as_ref().width() {
|
||||
self.content[index].set_symbol("…");
|
||||
}
|
||||
(x_offset as u16, y)
|
||||
|
Loading…
Reference in New Issue
Block a user