Page MenuHome

t38264.diff

File Metadata

Author
Justin Dailey (dail)
Created
Jan 20 2014, 9:58 PM

t38264.diff

diff --git a/source/blender/blenkernel/intern/text.c b/source/blender/blenkernel/intern/text.c
index 79ac2df..efe3e98 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;
}

Event Timeline