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:
parent
672f1f950f
commit
f789910f51
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user