diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2003-10-08 22:25:20 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2003-10-08 22:25:20 +0000 |
commit | c673e138dc76600fd72a09428a7a36dc4ec390c3 (patch) | |
tree | 6e5a63d3f3b786901cb543087f2307c79648c371 /desktop | |
parent | 6ad8b25cc0288224d305e8b5c8fdb496bb1593ff (diff) | |
download | netsurf-c673e138dc76600fd72a09428a7a36dc4ec390c3.tar.gz netsurf-c673e138dc76600fd72a09428a7a36dc4ec390c3.tar.bz2 |
[project @ 2003-10-08 22:25:20 by jmb]
Fix typo causing assertion failure
svn path=/import/netsurf/; revision=357
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/browser.c | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/desktop/browser.c b/desktop/browser.c index 3aea8f8d4..dfe034a97 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -824,16 +824,14 @@ void browser_window_textarea_callback(struct browser_window *bw, char key, void if (char_offset == text_box->length && text_box == inline_container->last && inline_container->next) { - if (inline_container->next->children) { - /* move to start of next box (if it exists) */ - text_box = inline_container->next->children; - } + /* move to start of next box (if it exists) */ + text_box = inline_container->next->children; char_offset = 0; inline_container=inline_container->next; } else if (char_offset == text_box->length && text_box->next) { text_box = text_box->next; - char_offset == 0; + char_offset = 0; } else if (char_offset != text_box->length) { char_offset++; @@ -846,10 +844,8 @@ void browser_window_textarea_callback(struct browser_window *bw, char key, void if (char_offset == 0 && text_box == inline_container->children && inline_container->prev) { - if (inline_container->prev->children) { - /* move to end of previous box */ - text_box = inline_container->prev->children; - } + /* move to end of previous box */ + text_box = inline_container->prev->children; inline_container=inline_container->prev; char_offset = text_box->length; } @@ -867,9 +863,7 @@ void browser_window_textarea_callback(struct browser_window *bw, char key, void /* Up Cursor */ if (text_box == inline_container->children && inline_container->prev) { - if (inline_container->prev->children) { - text_box = inline_container->prev->children; - } + text_box = inline_container->prev->children; inline_container = inline_container->prev; if (char_offset > text_box->length) { char_offset = text_box->length; @@ -888,9 +882,7 @@ void browser_window_textarea_callback(struct browser_window *bw, char key, void /* Down cursor */ if (text_box == inline_container->last && inline_container->next) { - if (inline_container->next->children) { - text_box = inline_container->next->children; - } + text_box = inline_container->next->children; inline_container = inline_container->next; if (char_offset > text_box->length) { char_offset = text_box->length; |