From 694c1e7eeadccd40017ca22a95136f3895347ddf Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 10 Jan 2013 18:42:56 +0000 Subject: Fix silly. --- desktop/textarea.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v1.2.3