1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

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:
Pedro J. Estébanez
2016-10-10 00:10:13 +02:00
parent e0e21984d8
commit 2f80965845
3 changed files with 3 additions and 3 deletions

View File

@@ -943,7 +943,7 @@ void GDTokenizerText::set_code(const String& p_code) {
}
code_pos=0;
line=1; //it is stand-ar-ized that lines begin in 1 in code..
column=0;
column=1; //the same holds for columns
tk_rb_pos=0;
error_flag=false;
last_error="";