Просмотр исходного кода

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

BDisp 3 лет назад
Родитель
Сommit
eb0e5003a6
1 измененных файлов с 2 добавлено и 0 удалено
  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) {