diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-10-30 15:57:37 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-10-30 15:57:37 +0400 |
commit | ef6050400980cc780550f2703b411536f4f4ee2e (patch) | |
tree | 60b4a3d4a7e1db6100797c16793e9724d75bb61a /source/blender/editors/space_console/console_ops.c | |
parent | 0c3d3e5562770586eaa95d6087d190240de5b8f2 (diff) |
fix for selection offset with indentation in the python console.
Diffstat (limited to 'source/blender/editors/space_console/console_ops.c')
-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)); |