diff options
author | Justin Dailey <dail8859@yahoo.com> | 2014-01-21 01:12:35 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-01-21 01:13:42 +0400 |
commit | 7c6f60572b24ef80abc6a64932791eba8d21ba2a (patch) | |
tree | 03678bd202edf5fa8ee815f3b855ff058f4ed736 /source/blender/blenkernel/intern | |
parent | e9efde2a05d3084301983bf98da619c265c59c73 (diff) |
Fix T38264: undo/redo broken with text overwrite mode in text editor (insert key).
Diffstat (limited to 'source/blender/blenkernel/intern')
-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; } |