diff options
| author | Nuno Donato | 2017-06-21 21:09:41 +0100 |
|---|---|---|
| committer | Nuno Donato | 2017-06-21 21:09:41 +0100 |
| commit | be2f7f4172258001fc557b9e4a0257e3539aca26 (patch) | |
| tree | 24bc52ec0937376b50112418384410942c6058cf /editor/plugins/shader_editor_plugin.cpp | |
| parent | ceded65c015b5456b8676cd5d61bb7176670ec19 (diff) | |
| download | godot-be2f7f4172258001fc557b9e4a0257e3539aca26.tar.gz godot-be2f7f4172258001fc557b9e4a0257e3539aca26.tar.zst godot-be2f7f4172258001fc557b9e4a0257e3539aca26.zip | |
Diffstat (limited to 'editor/plugins/shader_editor_plugin.cpp')
| -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 7c8ee97f2..bad88979a 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++) |
