Forráskód Böngészése

Fixes the return value of the position cursor in the TextField.

BDisp 5 éve
szülő
commit
e26fbd7d0e
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      Terminal.Gui/Views/TextField.cs

+ 1 - 1
Terminal.Gui/Views/TextField.cs

@@ -639,7 +639,7 @@ namespace Terminal.Gui {
 				point = text.Count;
 				point = text.Count;
 			if (point < first)
 			if (point < first)
 				point = 0;
 				point = 0;
-			return x;
+			return point;
 		}
 		}
 
 
 		void PrepareSelection (int x, int direction = 0)
 		void PrepareSelection (int x, int direction = 0)