From 122ca058dec7d59e4d352633275e8d11c6f3200f Mon Sep 17 00:00:00 2001 From: SuntrustDev <19979417+SunTrustDev@users.noreply.github.com> Date: Tue, 17 Feb 2026 21:32:13 +0100 Subject: [PATCH] Prevent text fields cursor from being stuck on n-1 character when clicking on the end of the text field --- src/EterLib/TextTag.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/EterLib/TextTag.cpp b/src/EterLib/TextTag.cpp index e2492b2..275bd07 100644 --- a/src/EterLib/TextTag.cpp +++ b/src/EterLib/TextTag.cpp @@ -134,6 +134,9 @@ int GetTextTagInternalPosFromRenderPos(const wchar_t * src, int src_len, int off i += len; } + if (offset >= output_len) + return src_len; + return internal_offset; }