diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-01-10 18:42:56 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-01-10 18:42:56 +0000 |
commit | 694c1e7eeadccd40017ca22a95136f3895347ddf (patch) | |
tree | f0491aa58b80b9a453eda985541005a9860539bc /desktop | |
parent | d3973b29917e049198badebf65f9e6290734b883 (diff) | |
download | netsurf-694c1e7eeadccd40017ca22a95136f3895347ddf.tar.gz netsurf-694c1e7eeadccd40017ca22a95136f3895347ddf.tar.bz2 |
Fix silly.
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/textarea.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/textarea.c b/desktop/textarea.c index 828503f69..9cec5b0d3 100644 --- a/desktop/textarea.c +++ b/desktop/textarea.c @@ -568,7 +568,7 @@ static bool textarea_replace_text(struct textarea *ta, unsigned int start, diff = end - start; /* find byte offset of replace start */ - for (b_start = 0; start > 0; + for (b_start = 0; start-- > 0; b_start = utf8_next(ta->text, ta->text_len, b_start)) ; /* do nothing */ |