mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-26 06:29:23 -05:00
fix: More invalid iterator accesses
This commit is contained in:
+3
-1
@@ -2041,7 +2041,9 @@ void TextEditor::ColorizeInternal() {
|
||||
}
|
||||
}
|
||||
}
|
||||
line[currentIndex].mPreprocessor = withinPreproc;
|
||||
if (currentIndex < line.size())
|
||||
line[currentIndex].mPreprocessor = withinPreproc;
|
||||
|
||||
currentIndex += UTF8CharLength(c);
|
||||
if (currentIndex >= (int)line.size()) {
|
||||
currentIndex = 0;
|
||||
|
||||
Reference in New Issue
Block a user