diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-03-24 16:14:19 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-03-24 16:14:19 +0300 |
commit | 3f9d5ea0ecc2561ee51be977ffd5ef4cfa0c2b49 (patch) | |
tree | 155ae89cd1d5001ed1b928e2bb5951b17404c6bf /source/blender/blenkernel/intern | |
parent | 9d1de621e2a7505ef7260df8a34b670e99f94a67 (diff) |
Fix text editor undo w/ 4+ byte utf8 characters
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/text.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/text.c b/source/blender/blenkernel/intern/text.c index db1bbeb0a88..5de325277ee 100644 --- a/source/blender/blenkernel/intern/text.c +++ b/source/blender/blenkernel/intern/text.c @@ -1763,7 +1763,7 @@ static void txt_undo_add_charop(Text *text, int op_start, unsigned int c) text->undo_buf[text->undo_pos] = op_start + 3; text->undo_pos++; - txt_undo_store_cursors(text); + txt_undo_store_cur(text); txt_undo_store_uint32(text->undo_buf, &text->undo_pos, c); text->undo_buf[text->undo_pos] = op_start + 3; @@ -1957,7 +1957,7 @@ static unsigned int txt_redo_read_unicode(const char *undo_buf, int *undo_pos, s unicode = BLI_str_utf8_as_unicode(utf8); break; case 4: /* 32-bit unicode symbol */ - unicode = txt_undo_read_uint32(undo_buf, undo_pos); + unicode = txt_redo_read_uint32(undo_buf, undo_pos); break; default: /* should never happen */ |