Fix silly.

This commit is contained in:
Michael Drake 2013-01-10 18:42:56 +00:00
parent d3973b2991
commit 694c1e7eea
1 changed files with 1 additions and 1 deletions

View File

@ -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 */