From e26fbd7d0e63dee0bce5f6941c490f612f2b72d3 Mon Sep 17 00:00:00 2001 From: BDisp Date: Fri, 15 May 2020 12:50:44 +0100 Subject: [PATCH] Fixes the return value of the position cursor in the TextField. --- Terminal.Gui/Views/TextField.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Terminal.Gui/Views/TextField.cs b/Terminal.Gui/Views/TextField.cs index 781866ef5..f86fcd897 100644 --- a/Terminal.Gui/Views/TextField.cs +++ b/Terminal.Gui/Views/TextField.cs @@ -639,7 +639,7 @@ namespace Terminal.Gui { point = text.Count; if (point < first) point = 0; - return x; + return point; } void PrepareSelection (int x, int direction = 0)