1
0
sdoroff 7 жил өмнө
parent
commit
6bc4c1764c

+ 1 - 1
src/Avalonia.Controls/TextBox.cs

@@ -791,7 +791,7 @@ namespace Avalonia.Controls
             int pos = 0;
             int i;
 
-            for (i = 0; i < lines.Count; ++i)
+            for (i = 0; i < lines.Count - 1; ++i)
             {
                 var line = lines[i];
                 pos += line.Length;