diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-10-08 16:16:03 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-10-08 16:16:03 +0400 |
commit | 7006309b3a105dbab8d1d5534d95d53fab5174ef (patch) | |
tree | e607a36ef2650bbdafa97e936ffb4c161d067b39 | |
parent | 30137cbdbc7babccdbb20f375fd73971d0d21f75 (diff) |
fix for console selection when pasting.
-rw-r--r-- | source/blender/editors/space_console/console_ops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_console/console_ops.c b/source/blender/editors/space_console/console_ops.c index 3f04d0e4293..4e50b589bc6 100644 --- a/source/blender/editors/space_console/console_ops.c +++ b/source/blender/editors/space_console/console_ops.c @@ -782,6 +782,7 @@ void CONSOLE_OT_copy(wmOperatorType *ot) static int paste_exec(bContext *C, wmOperator *op) { + SpaceConsole *sc= CTX_wm_space_console(C); ConsoleLine *ci= console_history_verify(C); char *buf_str= WM_clipboard_text_get(0); @@ -805,7 +806,7 @@ static int paste_exec(bContext *C, wmOperator *op) ci= console_history_verify(C); } - console_line_insert(ci, buf_next); + console_select_offset(sc, console_line_insert(ci, buf_next)); } MEM_freeN(buf_str); |