From fa2d5cf62c4bb00694c280416a10ad76945b2def Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 11 Feb 2013 14:30:26 +0000 Subject: Fix internal caret redraw bounds. --- desktop/textarea.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop') diff --git a/desktop/textarea.c b/desktop/textarea.c index cf71264a2..441571629 100644 --- a/desktop/textarea.c +++ b/desktop/textarea.c @@ -1243,7 +1243,7 @@ bool textarea_set_caret(struct textarea *ta, int caret) /* Delete the old caret */ if (ta->caret_pos.char_off != -1) { x0 = ta->caret_x - ta->scroll_x; - y0 = ta->caret_y + text_y_offset - ta->scroll_y; + y0 = ta->caret_y - ta->scroll_y; width = 2; height = ta->line_height; -- cgit v1.2.3