From ffe3ce2615ecd5505aafbed054a939bd07ee5697 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 22 Feb 2013 22:26:03 +0000 Subject: Don't need initial caret pos now. --- desktop/textarea.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop') 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); -- cgit v1.2.3