aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2016-03-29 17:59:39 +0200
committerThomas White <taw@bitwiz.org.uk>2016-03-29 17:59:39 +0200
commit3df20774824245fe3d1ec8451f2a664dd3b8569d (patch)
tree3f2ef6cc7c4a7964c3bd3041ec44ebbee0617fbf /src
parentb14d1503e73100f6973c813845632dfa05c583b9 (diff)
Oops.
Diffstat (limited to 'src')
-rw-r--r--src/sc_editor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c
index 5352028..6c6c281 100644
--- a/src/sc_editor.c
+++ b/src/sc_editor.c
@@ -408,7 +408,7 @@ static void draw_caret(cairo_t *cr, struct frame *fr, int cursor_para,
if ( get_para_highlight(fr, cursor_para, &cx, &cy, &w, &h) == 0 ) {
cairo_new_path(cr);
- cairo_rectangle(cr, cx, cy, w, h);
+ cairo_rectangle(cr, cx+fr->x, cy+fr->y, w, h);
cairo_set_source_rgba(cr, 0.7, 0.7, 1.0, 0.5);
cairo_set_line_width(cr, 5.0);
cairo_stroke(cr);