Browse Source

Avoids adding spaces on the right side if all line is already processed. (#1724)

BDisp 3 years ago
parent
commit
eb0e5003a6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Terminal.Gui/Core/TextFormatter.cs

+ 2 - 0
Terminal.Gui/Core/TextFormatter.cs

@@ -1159,6 +1159,8 @@ namespace Terminal.Gui {
 					if (idx < 0) {
 						current++;
 						continue;
+					} else if (idx > runes.Length - 1) {
+						break;
 					}
 					var rune = (Rune)' ';
 					if (isVertical) {