From e532aade547eac42a05fbd59ad98425a4d920f4a Mon Sep 17 00:00:00 2001 From: Joanmarie Diggs Date: Fri, 25 Apr 2014 20:48:06 -0400 Subject: libview: Update the caret cursor when jumping to a find result https://bugzilla.gnome.org/show_bug.cgi?id=728996 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=fc031f7 --- libview/ev-view.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libview/ev-view.c') diff --git a/libview/ev-view.c b/libview/ev-view.c index a7ae53e0..75b89caf 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -7452,6 +7452,9 @@ jump_to_find_result (EvView *view) rect = ev_view_find_get_result (view, page, view->find_result); _ev_view_transform_doc_rect_to_view_rect (view, page, rect, &view_rect); ensure_rectangle_is_visible (view, &view_rect); + if (view->caret_enabled && view->rotation == 0) + position_caret_cursor_at_doc_point (view, page, rect->x1, rect->y1); + view->jump_to_find_result = FALSE; } } -- cgit v1.2.1