Fix minor escape code check issue

This commit is contained in:
Kae 2023-10-27 12:24:22 +11:00
parent 48b8d43ff8
commit b2a5bd00fb

View File

@ -12,7 +12,7 @@ namespace Text {
unsigned char const SpecialCharLimit = ' ';
String stripEscapeCodes(String const& s);
inline bool isEscapeCode(char c) { return c == CmdEsc || c == StartEsc; }
inline bool isEscapeCode(Utf32Type c) { return c == CmdEsc || c == StartEsc; }
typedef function<bool(StringView text)> TextCallback;
typedef function<bool(StringView commands)> CommandsCallback;