From e07281f8bdc46934f2141c87be72eff498d5eb7e Mon Sep 17 00:00:00 2001 From: Random <35673979+RandomErrorMessage@users.noreply.github.com> Date: Wed, 25 Mar 2020 02:27:43 -0700 Subject: [PATCH] Fixed DrawTextRecEx() selection when wordwrap is ON (again) (#1149) --- src/text.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/text.c b/src/text.c index 095f7d8fb..bce0e6f91 100644 --- a/src/text.c +++ b/src/text.c @@ -973,6 +973,7 @@ void DrawTextRecEx(Font font, const char *text, Rectangle rec, float fontSize, f startLine = endLine; endLine = -1; glyphWidth = 0; + selectStart += lastk - k; k = lastk; state = !state;