소스 검색

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

BDisp 3 년 전
부모
커밋
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) {