diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_console/console_ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_console/console_ops.c b/source/blender/editors/space_console/console_ops.c index c2344cca557..6f7e6b1926f 100644 --- a/source/blender/editors/space_console/console_ops.c +++ b/source/blender/editors/space_console/console_ops.c @@ -451,6 +451,7 @@ static int console_indent_exec(bContext *C, wmOperator *UNUSED(op)) memset(ci->line, ' ', len); ci->len += len; console_line_cursor_set(ci, ci->cursor + len); + console_select_offset(sc, len); console_textview_update_rect(sc, ar); ED_area_tag_redraw(CTX_wm_area(C)); @@ -497,8 +498,7 @@ static int console_unindent_exec(bContext *C, wmOperator *UNUSED(op)) memmove(ci->line, ci->line + len, (ci->len - len) + 1); ci->len -= len; console_line_cursor_set(ci, ci->cursor - len); - - //console_select_offset(sc, -4); + console_select_offset(sc, -len); console_textview_update_rect(sc, ar); ED_area_tag_redraw(CTX_wm_area(C)); |