Browse Source

Fix crash on ZWSP

pull/8427/head
Niv Baehr 2 months ago committed by GitHub
parent
commit
4a5d7a6967
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      Source/engine/render/text_render.cpp

1
Source/engine/render/text_render.cpp

@ -482,6 +482,7 @@ void DrawLine(
char32_t c = DecodeFirstUtf8CodePoint(lineCopy, &cpLen);
if (c == Utf8DecodeError) break;
if (c == ZWSP) {
currentPos += cpLen;
lineCopy.remove_prefix(cpLen);
continue;
}

Loading…
Cancel
Save