forked from enlightenment/efl
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:
parent
31295a95d7
commit
6d7a73c68f
|
@ -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));
|
grid = eina_list_data_get(eina_list_nth_list(pd->grids, pd->cursor_line - 1));
|
||||||
evas_object_geometry_get(grid, NULL, &rowy, NULL, NULL);
|
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);
|
gutter = elm_obj_code_widget_text_left_gutter_width_get(widget);
|
||||||
curx = (pd->cursor_col + gutter - 1) * cellw;
|
curx = (pd->cursor_col + gutter - 1) * cellw;
|
||||||
|
|
Loading…
Reference in New Issue