summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-03-19 17:29:55 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2013-03-19 17:29:55 +0000
commit0bcbdba42481fc01a700ca1f2b4917981dbecf67 (patch)
tree2271d61cc747e157ebc85f7ab9799c490795d5cb /desktop
parentb1082c09e75ed6a4f2d7f95eec055f23018da4ee (diff)
downloadnetsurf-0bcbdba42481fc01a700ca1f2b4917981dbecf67.tar.gz
netsurf-0bcbdba42481fc01a700ca1f2b4917981dbecf67.tar.bz2
Comment fixes.
Diffstat (limited to 'desktop')
-rw-r--r--desktop/textarea.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/desktop/textarea.c b/desktop/textarea.c
index 6fb5927be..61ac0bbc4 100644
--- a/desktop/textarea.c
+++ b/desktop/textarea.c
@@ -346,9 +346,8 @@ static bool textarea_set_caret_internal(struct textarea *ta, int caret_b)
if (ta->lines[i + 1].b_start > b_off)
break;
+ /* Set new caret pos */
ta->caret_pos.line = i;
-
- /* Now calculate the char. offset of the caret in this line */
ta->caret_pos.byte_off = b_off - ta->lines[i].b_start;
/* Finally, redraw the caret */
@@ -2331,7 +2330,7 @@ bool textarea_keypress(struct textarea *ta, uint32_t key)
textarea_set_caret_internal(ta, caret);
- //TODO:redraw only the important part
+ /* TODO: redraw only the bit that changed */
if (redraw) {
msg.ta = ta;
msg.type = TEXTAREA_MSG_REDRAW_REQUEST;