summaryrefslogtreecommitdiff
path: root/libview/ev-view.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <[email protected]>2013-07-18 13:09:16 +0200
committerraveit65 <[email protected]>2017-09-06 18:25:34 +0200
commit03d0d638eeb5c0258839b4efb9ae5f2e1f7d0b12 (patch)
tree8d9d91df0c4bb0a2c81eeb62c814c00751cb4dd9 /libview/ev-view.c
parentf8bc3fa4d54088c418d776e6b48f268d0398c57d (diff)
downloadatril-03d0d638eeb5c0258839b4efb9ae5f2e1f7d0b12.tar.bz2
atril-03d0d638eeb5c0258839b4efb9ae5f2e1f7d0b12.tar.xz
libview: Update the cursor area after positioning the cursor when moving between lines
origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=074dfec
Diffstat (limited to 'libview/ev-view.c')
-rw-r--r--libview/ev-view.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c
index f2f8d0e8..5146d6cc 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -5403,6 +5403,9 @@ ev_view_move_cursor (EvView *view,
gtk_widget_error_bell (GTK_WIDGET (view));
return TRUE;
}
+
+ if (!get_caret_cursor_area (view, view->cursor_page, view->cursor_offset, &rect))
+ return TRUE;
} else {
view->cursor_line_offset = rect.x;
}