aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/frame.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/frame.c b/src/frame.c
index 626fb00..6f2c1e5 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -743,9 +743,9 @@ int get_para_highlight(struct frame *fr, int cursor_para,
py += fr->paras[i]->height;
}
- *cx = fr->pad_l;
- *cy = fr->pad_t + py;
- *cw = fr->w - fr->pad_l - fr->pad_r;
+ *cx = fr->pad_l + para->space[0];
+ *cy = fr->pad_t + py + para->space[2];
+ *cw = fr->w - fr->pad_l - fr->pad_r - para->space[0] - para->space[1];
*ch = para->height - para->space[2] - para->space[3];
return 0;
}