mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Center Script Editor when jumping to bookmarks/breakpoints
This commit is contained in:
parent
ad95424dba
commit
f4d0e598a7
2 changed files with 6 additions and 0 deletions
|
|
@ -1565,6 +1565,7 @@ void CodeTextEditor::goto_next_bookmark() {
|
|||
if (bline > line) {
|
||||
text_editor->unfold_line(bline);
|
||||
text_editor->cursor_set_line(bline);
|
||||
text_editor->center_viewport_to_cursor();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
@ -1589,6 +1590,7 @@ void CodeTextEditor::goto_prev_bookmark() {
|
|||
if (bline < line) {
|
||||
text_editor->unfold_line(bline);
|
||||
text_editor->cursor_set_line(bline);
|
||||
text_editor->center_viewport_to_cursor();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue