diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-11-22 16:06:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-22 16:06:39 +0100 |
commit | edbecf5908d30093b65a4497da97cfa4d7b5e356 (patch) | |
tree | 681f41f67fb937beed2cd2e38224c7742b83f218 /editor/plugins/script_text_editor.cpp | |
parent | 6ea25cbbf0ae7cbd66c5c534f09ee21dee4a67fe (diff) | |
parent | 1129d8327285c1d3732532b6c09a3079a4a45b58 (diff) |
Merge pull request #23875 from Chaosus/error_btn
Allows user to click on error line in status bar to jump into error.
Diffstat (limited to 'editor/plugins/script_text_editor.cpp')
-rw-r--r-- | editor/plugins/script_text_editor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index c3e2aa86f0..ad1eab1340 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -443,6 +443,7 @@ void ScriptTextEditor::_validate_script() { if (!script->get_language()->validate(text, line, col, errortxt, script->get_path(), &fnc, &warnings, &safe_lines)) { String error_text = "error(" + itos(line) + "," + itos(col) + "): " + errortxt; code_editor->set_error(error_text); + code_editor->set_error_pos(line - 1, col - 1); } else { code_editor->set_error(""); line = -1; |