From e1de9f9fc4d8499b9e71585f0dcebcc2a42a00ea Mon Sep 17 00:00:00 2001 From: Nong Van Tinh Date: Tue, 7 Mar 2023 16:53:46 +0700 Subject: =?UTF-8?q?Fixes=C2=A0=20gutter=20set=20width=20results=20in=20rec?= =?UTF-8?q?eiving=20only=20half=20of=20the=20desired=20size?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit bb3d0fc6b7f6caeffbfe43bd05d856373efa5b39) --- scene/gui/code_edit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/code_edit.h b/scene/gui/code_edit.h index 55fc5aa2ae..fe4b8d4809 100644 --- a/scene/gui/code_edit.h +++ b/scene/gui/code_edit.h @@ -108,7 +108,7 @@ private: /* Line numbers */ int line_number_gutter = -1; - int line_number_digits = 0; + int line_number_digits = 1; String line_number_padding = " "; Color line_number_color = Color(1, 1, 1); void _line_number_draw_callback(int p_line, int p_gutter, const Rect2 &p_region); -- cgit v1.2.3