summaryrefslogtreecommitdiff
path: root/editor/plugins/script_text_editor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-11-22 16:06:39 +0100
committerGitHub <noreply@github.com>2018-11-22 16:06:39 +0100
commitedbecf5908d30093b65a4497da97cfa4d7b5e356 (patch)
tree681f41f67fb937beed2cd2e38224c7742b83f218 /editor/plugins/script_text_editor.cpp
parent6ea25cbbf0ae7cbd66c5c534f09ee21dee4a67fe (diff)
parent1129d8327285c1d3732532b6c09a3079a4a45b58 (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.cpp1
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;