Prevent text fields cursor from being stuck on n-1 character when clicking on the end of the text field

This commit is contained in:
SuntrustDev
2026-02-17 21:32:13 +01:00
parent c687bf7ed4
commit 122ca058de

View File

@@ -134,6 +134,9 @@ int GetTextTagInternalPosFromRenderPos(const wchar_t * src, int src_len, int off
i += len; i += len;
} }
if (offset >= output_len)
return src_len;
return internal_offset; return internal_offset;
} }