summaryrefslogtreecommitdiffhomepage
path: root/src/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/text.c')
-rw-r--r--src/text.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/text.c b/src/text.c
index 095f7d8f..bce0e6f9 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;