diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-08-29 08:52:23 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-08-29 08:53:12 +0400 |
commit | 1dddad93c45bb29e001afe21e24ae1f34aaa3e7f (patch) | |
tree | 23af524b88ee3efcf241ecddb1997ca780b0f986 /source/blender/editors/space_text/text_ops.c | |
parent | f823ea1ac43f9e837b522aedb3e98cc52c3c38b7 (diff) |
Fix Text editor home/end keys when theres a selection
Diffstat (limited to 'source/blender/editors/space_text/text_ops.c')
-rw-r--r-- | source/blender/editors/space_text/text_ops.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/space_text/text_ops.c b/source/blender/editors/space_text/text_ops.c index fcd6fb3c179..2e3d8d056e8 100644 --- a/source/blender/editors/space_text/text_ops.c +++ b/source/blender/editors/space_text/text_ops.c @@ -1825,11 +1825,17 @@ static int text_move_cursor(bContext *C, int type, bool select) switch (type) { case LINE_BEGIN: + if (!select) { + txt_sel_clear(text); + } if (st && st->wordwrap && ar) txt_wrap_move_bol(st, ar, select); else txt_move_bol(text, select); break; case LINE_END: + if (!select) { + txt_sel_clear(text); + } if (st && st->wordwrap && ar) txt_wrap_move_eol(st, ar, select); else txt_move_eol(text, select); break; |