1
0
mirror of https://gitlab.gnome.org/GNOME/evince synced 2024-07-02 15:48:59 +00:00

libview: Move the caret to start/end line relative to the selection

Originally https://bugzilla.gnome.org/show_bug.cgi?id=704631

Fixes #387
This commit is contained in:
Antia Puentes 2014-07-25 17:22:17 +02:00 committed by Germán Poo-Caamaño
parent 672f1f950f
commit f789910f51

View File

@ -7059,10 +7059,12 @@ ev_view_move_cursor (EvView *view,
}
break;
case GTK_MOVEMENT_DISPLAY_LINE_ENDS:
if (count > 0)
cursor_go_to_line_end (view);
else if (count < 0)
cursor_go_to_line_start (view);
if (!clear_selections || cursor_clear_selection (view, count > 0)) {
if (count > 0)
cursor_go_to_line_end (view);
else if (count < 0)
cursor_go_to_line_start (view);
}
break;
case GTK_MOVEMENT_BUFFER_ENDS:
if (count > 0)