summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-06-02 19:26:43 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-06-02 19:26:43 (GMT)
commit551dda2ba526b930b84b9daef2b238abc140bf98 (patch)
tree08558a0a2704a8654d54394d6c2610d67d9d7cd7 /src
parent4a8e3034fc7b1d8eb33627ae0f7848b483da7bdf (diff)
Fixed the caret rendering position.
Diffstat (limited to 'src')
-rw-r--r--src/gtkext/gtkbufferdisplay.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gtkext/gtkbufferdisplay.c b/src/gtkext/gtkbufferdisplay.c
index d8061d7..a1833a6 100644
--- a/src/gtkext/gtkbufferdisplay.c
+++ b/src/gtkext/gtkbufferdisplay.c
@@ -525,14 +525,14 @@ static gboolean gtk_buffer_display_draw(GtkWidget *widget, cairo_t *cr)
}
- /* Curseur clignotant ? */
+ cairo_restore(cr);
- if (gtk_widget_is_focus(widget))
- gtk_buffer_display_draw_caret(display, cr);
+ /* Curseur clignotant ? */
cairo_restore(cr);
- cairo_restore(cr);
+ if (gtk_widget_is_focus(widget))
+ gtk_buffer_display_draw_caret(display, cr);
cairo_restore(cr);