Make text column numbers one-based
Make one-based the column number on the code editor Make one-based the column number for GDScript error messages Make one-based the column number for shader code error messages
This commit is contained in:
parent
e0e21984d8
commit
2f80965845
3 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue