Skip to content

Commit 4a5d7a6

Browse files
authored
Fix crash on ZWSP
1 parent b684fd1 commit 4a5d7a6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Source/engine/render/text_render.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ void DrawLine(
482482
char32_t c = DecodeFirstUtf8CodePoint(lineCopy, &cpLen);
483483
if (c == Utf8DecodeError) break;
484484
if (c == ZWSP) {
485+
currentPos += cpLen;
485486
lineCopy.remove_prefix(cpLen);
486487
continue;
487488
}

0 commit comments

Comments
 (0)