fix(terminal): properly trim lines with widechars on resize (#1545)

This commit is contained in:
Aram Drevekenin 2022-06-27 17:19:19 +02:00 committed by GitHub
parent 0d48195eee
commit 7c5c134984
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
} }
} }