ajwillia-ms pushed a commit to branch efl-1.20. http://git.enlightenment.org/core/efl.git/commit/?id=fa73c7b22e150e5df753330bc114477f6106eb4a
commit fa73c7b22e150e5df753330bc114477f6106eb4a Author: Andy Williams <a...@andywilliams.me> Date: Wed Nov 29 17:37:21 2017 +0000 elm_code: If showing line numbers don't resize at 10 lines. Content will still shift at 100 but that should be less intrusive --- src/lib/elementary/elm_code_widget_text.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/elementary/elm_code_widget_text.c b/src/lib/elementary/elm_code_widget_text.c index 43cce43a97..3b99305815 100644 --- a/src/lib/elementary/elm_code_widget_text.c +++ b/src/lib/elementary/elm_code_widget_text.c @@ -12,8 +12,10 @@ _elm_code_widget_text_line_number_width_get(Eo *obj EINA_UNUSED, Elm_Code_Widget int max; max = elm_code_file_lines_get(pd->code->file); - if (max < 1) - max = 1; + + // leave space for 2 digits minimum + if (max < 10) + max = 10; return floor(log10(max)) + 1; } --