diff options
Diffstat (limited to 'source/blender/blenkernel/intern/text.c')
-rw-r--r-- | source/blender/blenkernel/intern/text.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/text.c b/source/blender/blenkernel/intern/text.c index 79ac2df1e88..efe3e98b2b3 100644 --- a/source/blender/blenkernel/intern/text.c +++ b/source/blender/blenkernel/intern/text.c @@ -2620,7 +2620,11 @@ int txt_replace_char(Text *text, unsigned int add) /* Should probably create a new op for this */ if (!undoing) { txt_undo_add_charop(text, UNDO_INSERT_1, add); + text->curc -= add_size; + txt_pop_sel(text); txt_undo_add_charop(text, UNDO_DEL_1, del); + text->curc += add_size; + txt_pop_sel(text); } return 1; } |