summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/elementary/elm_code_widget.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_code_widget.c b/src/lib/elementary/elm_code_widget.c
index ceea5d2c47..2529321cac 100644
--- a/src/lib/elementary/elm_code_widget.c
+++ b/src/lib/elementary/elm_code_widget.c
@@ -466,10 +466,14 @@ static void
466_elm_code_widget_fill(Elm_Code_Widget *widget) 466_elm_code_widget_fill(Elm_Code_Widget *widget)
467{ 467{
468 Elm_Code_Widget_Data *pd; 468 Elm_Code_Widget_Data *pd;
469 unsigned int height;
469 470
470 pd = efl_data_scope_get(widget, ELM_CODE_WIDGET_CLASS); 471 pd = efl_data_scope_get(widget, ELM_CODE_WIDGET_CLASS);
472 height = elm_code_widget_lines_visible_get(widget);
473 if (height > elm_code_file_lines_get(pd->code->file))
474 height = elm_code_file_lines_get(pd->code->file);
471 475
472 _elm_code_widget_fill_update(widget, 1, elm_code_file_lines_get(pd->code->file), NULL); 476 _elm_code_widget_fill_update(widget, 1, height, NULL);
473} 477}
474 478
475static void 479static void