From f4d0e598a7500c667028c408c51cdbfb8acaa212 Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Sun, 1 Dec 2019 18:35:07 +0100 Subject: Center Script Editor when jumping to bookmarks/breakpoints --- editor/code_editor.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'editor/code_editor.cpp') diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp index 16780a795f..e3138dc1e5 100644 --- a/editor/code_editor.cpp +++ b/editor/code_editor.cpp @@ -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; } } -- cgit v1.2.3