diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-09-14 22:23:59 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-09-14 22:23:59 +0200 |
commit | 1e8976fcb57879342733c055f30fd4b8dfc14b12 (patch) | |
tree | b2cbd6c826c3f3cf52370e5d766965e2a7e571fa | |
parent | 3d577f065a873a4b8eabbad20ebd562a713a5a60 (diff) |
Tweak the script editor's line/column indicator for readability
- Use a colon instead of parentheses and a comma to reduce visual
clutter.
- Pad the line number with 4 spaces to account for scripts longer
than 999 lines.
-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()); } |