forked from bartvdbraak/blender
patch [#34465] Fix text editor bug: Crash when overwriting ascii character with multibyte character
from Shinsuke Irie (irie)
This commit is contained in:
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);
|
||||
|
Loading…
Reference in New Issue
Block a user