Fix internal caret redraw bounds.

This commit is contained in:
Michael Drake 2013-02-11 14:30:26 +00:00
parent 18444f261a
commit fa2d5cf62c

View File

@ -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;