mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Fix editor crash on pressing Go to Previous Bookmark menu button
This commit is contained in:
@@ -1735,7 +1735,7 @@ void CodeTextEditor::goto_prev_bookmark() {
|
||||
text_editor->set_caret_line(bmarks[bmarks.size() - 1]);
|
||||
text_editor->center_viewport_to_caret();
|
||||
} else {
|
||||
for (int i = bmarks.size(); i >= 0; i--) {
|
||||
for (int i = bmarks.size() - 1; i >= 0; i--) {
|
||||
int bmark_line = bmarks[i];
|
||||
if (bmark_line < line) {
|
||||
text_editor->unfold_line(bmark_line);
|
||||
|
||||
Reference in New Issue
Block a user