aboutsummaryrefslogtreecommitdiff
path: root/src/sc_editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sc_editor.c')
-rw-r--r--src/sc_editor.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c
index 379af90..5352028 100644
--- a/src/sc_editor.c
+++ b/src/sc_editor.c
@@ -403,8 +403,17 @@ static void draw_caret(cairo_t *cr, struct frame *fr, int cursor_para,
size_t cursor_pos, int cursor_trail)
{
double cx, clow, chigh, h;
+ double cy, w;
const double t = 1.8;
+ if ( get_para_highlight(fr, cursor_para, &cx, &cy, &w, &h) == 0 ) {
+ cairo_new_path(cr);
+ cairo_rectangle(cr, cx, cy, 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);
+ }
+
if ( get_cursor_pos(fr, cursor_para, cursor_pos+cursor_trail,
&cx, &clow, &h) )
{