summaryrefslogtreecommitdiff
path: root/desktop/textarea.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-02-22 22:26:03 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2013-02-22 22:26:03 +0000
commitffe3ce2615ecd5505aafbed054a939bd07ee5697 (patch)
tree85246071de98d28a28a20fe14a3caaa20c497820 /desktop/textarea.c
parentc034fb87ad79c704b86b05ac494ccb572544b39c (diff)
downloadnetsurf-ffe3ce2615ecd5505aafbed054a939bd07ee5697.tar.gz
netsurf-ffe3ce2615ecd5505aafbed054a939bd07ee5697.tar.bz2
Don't need initial caret pos now.
Diffstat (limited to 'desktop/textarea.c')
-rw-r--r--desktop/textarea.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/textarea.c b/desktop/textarea.c
index 5e29ce8da..7444c9f3f 100644
--- a/desktop/textarea.c
+++ b/desktop/textarea.c
@@ -1785,12 +1785,12 @@ bool textarea_keypress(struct textarea *ta, uint32_t key)
{
struct textarea_msg msg;
char utf8[6];
- unsigned int caret, caret_init, length, l_len, b_off, b_len;
+ unsigned int caret, length, l_len, b_off, b_len;
int c_line, c_chars, line;
bool redraw = false;
bool readonly;
- caret_init = caret = textarea_get_caret(ta);
+ caret = textarea_get_caret(ta);
line = ta->caret_pos.line;
readonly = (ta->flags & TEXTAREA_READONLY ? true : false);