elm_code: fix carriage return at EOF scroller behaviour

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4890
This commit is contained in:
Al Poole 2017-05-19 18:47:16 +01:00 committed by Andy Williams
parent 31295a95d7
commit 6d7a73c68f
1 changed files with 2 additions and 0 deletions

View File

@ -599,6 +599,8 @@ _elm_code_widget_cursor_ensure_visible(Elm_Code_Widget *widget)
grid = eina_list_data_get(eina_list_nth_list(pd->grids, pd->cursor_line - 1));
evas_object_geometry_get(grid, NULL, &rowy, NULL, NULL);
if (!rowy) // EOF
rowy = cellh + viewh + viewy + oy;
gutter = elm_obj_code_widget_text_left_gutter_width_get(widget);
curx = (pd->cursor_col + gutter - 1) * cellw;