diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-02-12 10:13:55 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-02-12 10:13:55 +0000 |
commit | c39a3d7263b300b285e25461df56885935299159 (patch) | |
tree | 5edc5934f8a922858893be06007a8a08957ebb1f /desktop | |
parent | d25fd5fb6caba2fcebed977b0e66705fadc79026 (diff) | |
download | netsurf-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')
-rw-r--r-- | desktop/textarea.c | 3 |
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); } |