Skip to content

Commit cd66343

Browse files
committed
Merge pull request godotengine#98543 from rune-scape/code-edit-margin
CodeEdit: Fix line number margin
2 parents 3c3303e + 5d168a3 commit cd66343

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scene/gui/code_edit.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,9 +1498,9 @@ void CodeEdit::_line_number_draw_callback(int p_line, int p_gutter, const Rect2
14981498
ofs.y += TS->shaped_text_get_ascent(text_rid);
14991499

15001500
if (rtl) {
1501-
ofs.x = p_region.position.x;
1502-
} else {
15031501
ofs.x = p_region.get_end().x - text_size.width;
1502+
} else {
1503+
ofs.x = p_region.position.x;
15041504
}
15051505

15061506
Color number_color = get_line_gutter_item_color(p_line, line_number_gutter);

0 commit comments

Comments
 (0)