From e6aaffddd41b4bd2920667ce4ae7cc368df65ca6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20Ker=C3=A4nen?= Date: Thu, 24 Dec 2020 22:53:19 +0200 Subject: [PATCH 1/1] Fixed: InputWidget cursor positioning --- src/ui/text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/text.c b/src/ui/text.c index 0f511adb..2ab40387 100644 --- a/src/ui/text.c +++ b/src/ui/text.c @@ -859,7 +859,7 @@ static iRect run_Font_(iFont *d, const iRunArgs *args) { } #endif prevCh = ch; - if (maxLen == 0) { + if (--maxLen == 0) { break; } } -- 2.34.1