diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2016-10-11 09:09:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-11 09:09:49 +0200 |
commit | f3106cddb38259f74846edd43b85208b99e3414a (patch) | |
tree | 1dd7bf0c8aee7dd1fc232f9022ad7e860c8350f1 /tools/editor/plugins/shader_editor_plugin.cpp | |
parent | 346e8a9a6e56114cd92b8d9fe83ee641c8c5381f (diff) | |
parent | 2f80965845dd40c4a7981b0d3f011f26c185d63f (diff) |
Merge pull request #6775 from RandomShaper/one-based-col-numbers
Make text column numbers one-based
Diffstat (limited to 'tools/editor/plugins/shader_editor_plugin.cpp')
-rw-r--r-- | tools/editor/plugins/shader_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/plugins/shader_editor_plugin.cpp b/tools/editor/plugins/shader_editor_plugin.cpp index ec9fdcdb05..861f5678f6 100644 --- a/tools/editor/plugins/shader_editor_plugin.cpp +++ b/tools/editor/plugins/shader_editor_plugin.cpp @@ -155,7 +155,7 @@ void ShaderTextEditor::_validate_script() { Error err = ShaderLanguage::compile(code,type,NULL,NULL,&errortxt,&line,&col); if (err!=OK) { - String error_text="error("+itos(line+1)+","+itos(col)+"): "+errortxt; + String error_text="error("+itos(line+1)+","+itos(col+1)+"): "+errortxt; set_error(error_text); get_text_edit()->set_line_as_marked(line,true); |