Fixes remaining wide runes render issues.

This commit is contained in:
BDisp
2022-05-11 00:24:57 +01:00
parent 736d10598b
commit 4382a2c2c2
7 changed files with 363 additions and 60 deletions

View File

@@ -159,8 +159,10 @@ namespace Terminal.Gui.Views {
}
// Remove unnecessary empty lines
for (int r = lines.Count - 1; r > h - 1; r--) {
lines.RemoveAt (r);
if (lines.Count > 0) {
for (int r = lines.Count - 1; r > h - 1; r--) {
lines.RemoveAt (r);
}
}
// Remove trailing whitespace on each line