mirror of
https://github.com/godotengine/godot.git
synced 2024-11-30 16:12:46 +00:00
Fix text minimap crash when last line is folded
This commit is contained in:
parent
a8e007f055
commit
df0c8386a9
@ -958,6 +958,10 @@ void TextEdit::_notification(int p_what) {
|
||||
}
|
||||
}
|
||||
|
||||
if (minimap_line < 0 || minimap_line >= (int)text.size()) {
|
||||
break;
|
||||
}
|
||||
|
||||
Map<int, HighlighterInfo> color_map;
|
||||
if (syntax_coloring) {
|
||||
color_map = _get_line_syntax_highlighting(minimap_line);
|
||||
|
Loading…
Reference in New Issue
Block a user