diff options
author | Justin Dailey <dail8859@yahoo.com> | 2013-09-06 01:36:19 +0400 |
---|---|---|
committer | Justin Dailey <dail8859@yahoo.com> | 2013-09-06 01:36:19 +0400 |
commit | 89a02fc4ef775d7933032b2a00ed8ebcca0d8b6d (patch) | |
tree | b3eb9cdb2cbaf0eb248930eb82028b06445966f7 /source/blender/editors | |
parent | 3b72f1824cf06216c70101ee0d29004cc6dc632d (diff) |
fix [#36656] text editor undo error when undoing paste command
When tabs to spaces is enabled and a paste command is undone, the improper number of characters could get removed. Also fixed issue with shift + left/right only selecting a max of 1 character.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_text/text_ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_text/text_ops.c b/source/blender/editors/space_text/text_ops.c index 0baec4d030c..2c2a8b255da 100644 --- a/source/blender/editors/space_text/text_ops.c +++ b/source/blender/editors/space_text/text_ops.c @@ -1861,7 +1861,7 @@ static int text_move_cursor(bContext *C, int type, int select) break; case PREV_CHAR: - if (txt_has_sel(text)) { + if (txt_has_sel(text) && !select) { txt_order_cursors(text, false); txt_pop_sel(text); } @@ -1871,7 +1871,7 @@ static int text_move_cursor(bContext *C, int type, int select) break; case NEXT_CHAR: - if (txt_has_sel(text)) { + if (txt_has_sel(text) && !select) { txt_order_cursors(text, true); txt_pop_sel(text); } |