diff options
author | Thomas White <taw@bitwiz.org.uk> | 2016-03-29 17:59:39 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2016-03-29 17:59:39 +0200 |
commit | 3df20774824245fe3d1ec8451f2a664dd3b8569d (patch) | |
tree | 3f2ef6cc7c4a7964c3bd3041ec44ebbee0617fbf /src/sc_editor.c | |
parent | b14d1503e73100f6973c813845632dfa05c583b9 (diff) |
Oops.
Diffstat (limited to 'src/sc_editor.c')
-rw-r--r-- | src/sc_editor.c | 2 |
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); |