summaryrefslogtreecommitdiff
path: root/desktop/textinput.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/textinput.c')
-rw-r--r--desktop/textinput.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop/textinput.c b/desktop/textinput.c
index 8cfe01050..fa7ea443a 100644
--- a/desktop/textinput.c
+++ b/desktop/textinput.c
@@ -880,6 +880,10 @@ bool browser_window_input_callback(struct browser_window *bw,
input->gadget->caret_form_offset =
get_form_offset(input, text_box, box_offset);
+ /* update the form offset */
+ input->gadget->caret_form_offset =
+ get_form_offset(input, text_box, box_offset);
+
selection_get_end(bw->sel, &end_offset);
box_coords(input, &box_x, &box_y);