summaryrefslogtreecommitdiff
path: root/libview
diff options
context:
space:
mode:
Diffstat (limited to 'libview')
-rw-r--r--libview/ev-view.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c
index bb70a9cc..e66b1f23 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -3482,7 +3482,9 @@ ev_view_set_caret_navigation_enabled (EvView *view,
if (view->caret_enabled != enabled) {
view->caret_enabled = enabled;
ev_view_check_cursor_blink (view);
- gtk_widget_queue_draw (GTK_WIDGET (view));
+
+ if (cursor_is_in_visible_page (view))
+ gtk_widget_queue_draw (GTK_WIDGET (view));
}
}