patch [#34465] Fix text editor bug: Crash when overwriting ascii character with multibyte character

from Shinsuke Irie (irie)
This commit is contained in:
Campbell Barton 2013-02-28 00:08:47 +00:00
parent dff8c01c3e
commit e4c887377b

@ -2560,6 +2560,7 @@ int txt_replace_char(Text *text, unsigned int add)
memcpy(text->curl->line + text->curc, ch, add_size);
text->curc += add_size;
text->curl->len += add_size - del_size;
txt_pop_sel(text);
txt_make_dirty(text);