diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-02-11 16:10:19 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-02-11 16:10:19 +0000 |
commit | 3bcc79ccf044e08dae4285229f62ad5329059ab6 (patch) | |
tree | 24fe492320ea32a488482adcee1bd66440e2ceae /desktop | |
parent | fa2d5cf62c4bb00694c280416a10ad76945b2def (diff) | |
download | netsurf-3bcc79ccf044e08dae4285229f62ad5329059ab6.tar.gz netsurf-3bcc79ccf044e08dae4285229f62ad5329059ab6.tar.bz2 |
Don't need to redraw for caret removal if using a native caret.
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/textarea.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/textarea.c b/desktop/textarea.c index 441571629..f02ef3289 100644 --- a/desktop/textarea.c +++ b/desktop/textarea.c @@ -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; |