fix(terminal): properly trim lines with widechars on resize (#1545)
This commit is contained in:
parent
0d48195eee
commit
7c5c134984
1 changed files with 2 additions and 1 deletions
|
|
@ -651,7 +651,8 @@ impl Grid {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let Some(trim_at) = trim_at {
|
if let Some(trim_at) = trim_at {
|
||||||
line.truncate(trim_at);
|
let excess_width_until_trim_at = line.excess_width_until(trim_at);
|
||||||
|
line.truncate(trim_at + excess_width_until_trim_at);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue