summaryrefslogtreecommitdiffstats
path: root/tools/editor/code_editor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-10-11 09:09:49 +0200
committerGitHub <noreply@github.com>2016-10-11 09:09:49 +0200
commitf3106cddb38259f74846edd43b85208b99e3414a (patch)
tree1dd7bf0c8aee7dd1fc232f9022ad7e860c8350f1 /tools/editor/code_editor.cpp
parent346e8a9a6e56114cd92b8d9fe83ee641c8c5381f (diff)
parent2f80965845dd40c4a7981b0d3f011f26c185d63f (diff)
downloadredot-engine-f3106cddb38259f74846edd43b85208b99e3414a.tar.gz
Merge pull request #6775 from RandomShaper/one-based-col-numbers
Make text column numbers one-based
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 17f252ee25..ffcb344497 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() {