Fix delete-to-line-end.

This commit is contained in:
Michael Drake 2013-02-11 13:39:56 +00:00
parent 262555099d
commit 18444f261a

View File

@ -2050,7 +2050,7 @@ bool textarea_keypress(struct textarea *ta, uint32_t key)
b_len = ta->lines[line].b_length;
l_len = utf8_bounded_length(
&(ta->text.data[b_off]),
b_len);
b_len) - ta->caret_pos.char_off;
if (!textarea_replace_text(ta, caret,
caret + l_len, "", 0, false))
return false;