summaryrefslogtreecommitdiff
path: root/desktop/textarea.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-02-12 10:13:55 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2013-02-12 10:13:55 +0000
commitc39a3d7263b300b285e25461df56885935299159 (patch)
tree5edc5934f8a922858893be06007a8a08957ebb1f /desktop/textarea.c
parentd25fd5fb6caba2fcebed977b0e66705fadc79026 (diff)
downloadnetsurf-c39a3d7263b300b285e25461df56885935299159.tar.gz
netsurf-c39a3d7263b300b285e25461df56885935299159.tar.bz2
When reqesting redraaw to remove internal caret, make sure caret is already removed as the redraw may be serviced immediatley.
Diffstat (limited to 'desktop/textarea.c')
-rw-r--r--desktop/textarea.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/desktop/textarea.c b/desktop/textarea.c
index a8e9f8869..f8462c0b2 100644
--- a/desktop/textarea.c
+++ b/desktop/textarea.c
@@ -1258,6 +1258,9 @@ bool textarea_set_caret(struct textarea *ta, int caret)
msg.data.redraw.x1 = x0 + width;
msg.data.redraw.y1 = y0 + height;
+ /* Ensure it is hidden */
+ ta->caret_pos.char_off = -1;
+
ta->callback(ta->data, &msg);
}