1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

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.

(cherry picked from commit 1e8976fcb5)
This commit is contained in:
Hugo Locurcio
2021-09-14 22:23:59 +02:00
committed by Rémi Verschelde
parent c75aa69774
commit b1b936cba8

View File

@@ -803,11 +803,9 @@ void CodeTextEditor::_line_col_changed() {
}
StringBuilder sb;
sb.append("(");
sb.append(itos(text_editor->cursor_get_line() + 1).lpad(3));
sb.append(",");
sb.append(itos(text_editor->cursor_get_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());
}