From 2f80965845dd40c4a7981b0d3f011f26c185d63f Mon Sep 17 00:00:00 2001 From: Pedro J. Estébanez Date: Mon, 10 Oct 2016 00:10:13 +0200 Subject: 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 --- tools/editor/code_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/editor/code_editor.cpp') diff --git a/tools/editor/code_editor.cpp b/tools/editor/code_editor.cpp index 9240e3527..b43a3e9ca 100644 --- a/tools/editor/code_editor.cpp +++ b/tools/editor/code_editor.cpp @@ -1051,7 +1051,7 @@ void CodeTextEditor::_reset_zoom() { void CodeTextEditor::_line_col_changed() { line_nb->set_text(itos(text_editor->cursor_get_line() + 1)); - col_nb->set_text(itos(text_editor->cursor_get_column())); + col_nb->set_text(itos(text_editor->cursor_get_column() + 1)); } void CodeTextEditor::_text_changed() { -- cgit v1.2.3-70-g09d2