diff options
author | Thomas Herzog <karroffel@users.noreply.github.com> | 2017-06-23 02:19:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-23 02:19:40 +0200 |
commit | c5e0c6a3365bede09079a84eae164233a566b177 (patch) | |
tree | 37b0e574a8fc0bbdf849721d1a401d5071b6104b | |
parent | 3f2cd75c6f4c199389ad4d9766b5895be414a5f6 (diff) | |
parent | be2f7f4172258001fc557b9e4a0257e3539aca26 (diff) |
Merge pull request #9307 from nunodonato/shadererrorline
highlight the correct error line in shader editor
-rw-r--r-- | editor/plugins/shader_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/shader_editor_plugin.cpp b/editor/plugins/shader_editor_plugin.cpp index 7c8ee97f22..bad88979ac 100644 --- a/editor/plugins/shader_editor_plugin.cpp +++ b/editor/plugins/shader_editor_plugin.cpp @@ -188,7 +188,7 @@ void ShaderTextEditor::_validate_script() { if (err != OK) { String error_text = "error(" + itos(sl.get_error_line()) + "): " + sl.get_error_text(); set_error(error_text); - get_text_edit()->set_line_as_marked(sl.get_error_line(), true); + get_text_edit()->set_line_as_marked(sl.get_error_line() - 1, true); } else { for (int i = 0; i < get_text_edit()->get_line_count(); i++) |