diff options
| author | Rémi Verschelde | 2016-10-11 09:09:49 +0200 |
|---|---|---|
| committer | GitHub | 2016-10-11 09:09:49 +0200 |
| commit | f3106cddb38259f74846edd43b85208b99e3414a (patch) | |
| tree | 1dd7bf0c8aee7dd1fc232f9022ad7e860c8350f1 /tools/editor/code_editor.cpp | |
| parent | 346e8a9a6e56114cd92b8d9fe83ee641c8c5381f (diff) | |
| parent | 2f80965845dd40c4a7981b0d3f011f26c185d63f (diff) | |
| download | godot-f3106cddb38259f74846edd43b85208b99e3414a.tar.gz godot-f3106cddb38259f74846edd43b85208b99e3414a.tar.zst godot-f3106cddb38259f74846edd43b85208b99e3414a.zip | |
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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/code_editor.cpp b/tools/editor/code_editor.cpp index 17f252ee2..ffcb34449 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() { |
