diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-09-16 10:29:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-16 10:29:48 +0200 |
commit | 3d31afa6271c4d155663fc05392384f688a3fae1 (patch) | |
tree | b6765eb7dd4c83428cbe207a5a0f70dde1750053 | |
parent | ce0feeaf69face70aa2c21f10171e2764d7f70c6 (diff) | |
parent | 1e8976fcb57879342733c055f30fd4b8dfc14b12 (diff) |
Merge pull request #52683 from Calinou/script-editor-tweak-line-column-indicator
Tweak the script editor's line/column indicator for readability
-rw-r--r-- | editor/code_editor.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp index 5599076c40..0c49a7169d 100644 --- a/editor/code_editor.cpp +++ b/editor/code_editor.cpp @@ -834,11 +834,9 @@ void CodeTextEditor::_line_col_changed() { } StringBuilder sb; - sb.append("("); - sb.append(itos(text_editor->get_caret_line() + 1).lpad(3)); - sb.append(","); + sb.append(itos(text_editor->get_caret_line() + 1).lpad(4)); + sb.append(" : "); sb.append(itos(positional_column + 1).lpad(3)); - sb.append(")"); line_and_col_txt->set_text(sb.as_string()); } |