diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-07-19 09:57:18 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-07-19 09:57:18 +0000 |
commit | 89da5c5eedcc8d76f84fc41e9d09307db4684b63 (patch) | |
tree | 420954bf7911d132ee29c666b6c7d1d69c5ccdce | |
parent | b37bb0cbff6b969526c9b71243b119c546ffaa1e (diff) | |
download | netsurf-89da5c5eedcc8d76f84fc41e9d09307db4684b63.tar.gz netsurf-89da5c5eedcc8d76f84fc41e9d09307db4684b63.tar.bz2 |
Lose unused variable
svn path=/trunk/netsurf/; revision=4705
-rw-r--r-- | desktop/textinput.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/desktop/textinput.c b/desktop/textinput.c index d9cf60bef..14864c1f8 100644 --- a/desktop/textinput.c +++ b/desktop/textinput.c @@ -867,8 +867,6 @@ bool browser_window_input_callback(struct browser_window *bw, struct box *input = (struct box *)p; struct box *text_box = input->children->children; size_t box_offset = input->gadget->caret_box_offset; - size_t form_offset = input->gadget->caret_form_offset = - get_form_offset(input, text_box, box_offset); size_t end_offset; int pixel_offset = input->gadget->caret_pixel_offset; int box_x, box_y; @@ -878,7 +876,10 @@ bool browser_window_input_callback(struct browser_window *bw, unsigned int utf8_len; bool to_textarea = false; bool selection_exists = bw->sel->defined; - + + 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); |