Open disarray2077 opened 1 year ago
This widget seems to assume UTF-8 bytes are always correct, so when it encounters a broken UTF-8 sequence it crashes on this line (if the byte is on the end of the line): https://github.com/santaclose/ImGuiColorTextEdit/blob/76d9ff0d22e89c8e4e93d0cf5e40f8af3def19a8/TextEditor.cpp#L1234C3-L1234C3
are you loading a file? can you provide the file if so?
@santaclose here it is: crash.txt
This widget seems to assume UTF-8 bytes are always correct, so when it encounters a broken UTF-8 sequence it crashes on this line (if the byte is on the end of the line): https://github.com/santaclose/ImGuiColorTextEdit/blob/76d9ff0d22e89c8e4e93d0cf5e40f8af3def19a8/TextEditor.cpp#L1234C3-L1234C3