From 1dddad93c45bb29e001afe21e24ae1f34aaa3e7f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 29 Aug 2014 14:52:23 +1000 Subject: Fix Text editor home/end keys when theres a selection --- source/blender/editors/space_text/text_ops.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/editors/space_text') 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; -- cgit v1.2.3