...
  View open merge request
Commits (2)
......@@ -6361,6 +6361,7 @@ ev_view_move_cursor (EvView *view,
gint prev_offset;
gint prev_page;
cairo_region_t *damage_region;
gboolean changed_page;
gboolean clear_selections = FALSE;
if (!view->caret_enabled || view->rotation != 0)
......@@ -6436,6 +6437,28 @@ ev_view_move_cursor (EvView *view,
if (!get_caret_cursor_area (view, view->cursor_page, view->cursor_offset, &rect))
return TRUE;
if (!view->continuous) {
changed_page = FALSE;
if (prev_page < view->cursor_page) {
ev_view_next_page (view);
cursor_go_to_page_start (view);
changed_page = TRUE;
} else if (prev_page > view->cursor_page) {
ev_view_previous_page (view);
cursor_go_to_page_end (view);
changed_page = TRUE;
}
if (changed_page) {
rect.x += view->scroll_x;
rect.y += view->scroll_y;
ensure_rectangle_is_visible (view, &rect);
g_signal_emit (view, signals[SIGNAL_CURSOR_MOVED], 0, view->cursor_page, view->cursor_offset);
clear_selection (view);
return TRUE;
}
}
if (step == GTK_MOVEMENT_DISPLAY_LINES) {
position_caret_cursor_at_location (view,
MAX (rect.x, view->cursor_line_offset),
......