summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}