Don't need to redraw for caret removal if using a native caret.

This commit is contained in:
Michael Drake 2013-02-11 16:10:19 +00:00
parent fa2d5cf62c
commit 3bcc79ccf0
1 changed files with 2 additions and 1 deletions

View File

@ -1241,7 +1241,8 @@ bool textarea_set_caret(struct textarea *ta, int caret)
}
/* Delete the old caret */
if (ta->caret_pos.char_off != -1) {
if (ta->caret_pos.char_off != -1 &&
ta->flags & TEXTAREA_INTERNAL_CARET) {
x0 = ta->caret_x - ta->scroll_x;
y0 = ta->caret_y - ta->scroll_y;
width = 2;