aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/code_editor.cpp
diff options
context:
space:
mode:
authorPedro J. Estébanez2016-10-10 00:10:13 +0200
committerRémi Verschelde2016-10-17 20:44:47 +0200
commit99d82f3033f18bb06c504627d898903c0aef55ac (patch)
tree7cad98ec5e860334fb472baf86659b715f0be3a7 /tools/editor/code_editor.cpp
parentf250c0cf5067bf3b032553ac982120e0fcff08bf (diff)
downloadgodot-99d82f3033f18bb06c504627d898903c0aef55ac.tar.gz
godot-99d82f3033f18bb06c504627d898903c0aef55ac.tar.zst
godot-99d82f3033f18bb06c504627d898903c0aef55ac.zip
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 (cherry picked from commit 2f80965845dd40c4a7981b0d3f011f26c185d63f)
Diffstat (limited to 'tools/editor/code_editor.cpp')
-rw-r--r--tools/editor/code_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/code_editor.cpp b/tools/editor/code_editor.cpp
index d2bf070f1..dcfbe79ed 100644
--- a/tools/editor/code_editor.cpp
+++ b/tools/editor/code_editor.cpp
@@ -1035,7 +1035,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() {