You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Merge pull request #6775 from RandomShaper/one-based-col-numbers
Make text column numbers one-based
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user