diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-05-13 21:11:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-13 21:11:16 +0200 |
commit | 0f5fddbdc061179ad131471a0eab5460ca1dd4d6 (patch) | |
tree | 7fecb3cffb2e3f45efaa5562550e535b31eec27d | |
parent | 66f40f74c33a62bde973beaa41018377319c5d01 (diff) | |
parent | 6b55ec2ca9a805bc2ae72038d2eaa24242cb4fea (diff) |
Merge pull request #48666 from LLschuster/master
text-editor: fix Clicking warning doesn't center around line #48639
-rw-r--r-- | editor/plugins/script_text_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index c982207224..edf540bf48 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -292,7 +292,7 @@ void ScriptTextEditor::_show_warnings_panel(bool p_show) { void ScriptTextEditor::_warning_clicked(Variant p_line) { if (p_line.get_type() == Variant::INT) { - code_editor->get_text_editor()->cursor_set_line(p_line.operator int64_t()); + goto_line_centered(p_line.operator int64_t()); } else if (p_line.get_type() == Variant::DICTIONARY) { Dictionary meta = p_line.operator Dictionary(); code_editor->get_text_editor()->insert_at("# warning-ignore:" + meta["code"].operator String(), meta["line"].operator int64_t() - 1); |