diff options
Diffstat (limited to 'source/blender/editors/space_console')
-rw-r--r-- | source/blender/editors/space_console/console_draw.c | 4 | ||||
-rw-r--r-- | source/blender/editors/space_console/console_ops.c | 5 |
2 files changed, 3 insertions, 6 deletions
diff --git a/source/blender/editors/space_console/console_draw.c b/source/blender/editors/space_console/console_draw.c index f26bc63f01d..d4d1429530c 100644 --- a/source/blender/editors/space_console/console_draw.c +++ b/source/blender/editors/space_console/console_draw.c @@ -146,7 +146,7 @@ static int console_textview_line_get(struct TextViewContext *tvc, const char **l static int console_textview_line_color(struct TextViewContext *tvc, unsigned char fg[3], unsigned char UNUSED(bg[3])) { - ConsoleLine *cl= (ConsoleLine *)tvc->iter; + ConsoleLine *cl_iter= (ConsoleLine *)tvc->iter; /* annoying hack, to draw the prompt */ if(tvc->iter_index == 0) { @@ -181,7 +181,7 @@ static int console_textview_line_color(struct TextViewContext *tvc, unsigned cha ); } - console_line_color(fg, cl->type); + console_line_color(fg, cl_iter->type); return TVC_LINE_FG; } diff --git a/source/blender/editors/space_console/console_ops.c b/source/blender/editors/space_console/console_ops.c index e8c7cc6c926..405c965ecce 100644 --- a/source/blender/editors/space_console/console_ops.c +++ b/source/blender/editors/space_console/console_ops.c @@ -365,7 +365,7 @@ static int insert_exec(bContext *C, wmOperator *op) // XXX, alligned tab key hack if(str[0]=='\t' && str[1]=='\0') { - int len= TAB_LENGTH - (ci->cursor % TAB_LENGTH); + len= TAB_LENGTH - (ci->cursor % TAB_LENGTH); MEM_freeN(str); str= MEM_mallocN(len + 1, "insert_exec"); memset(str, ' ', len); @@ -380,7 +380,6 @@ static int insert_exec(bContext *C, wmOperator *op) return OPERATOR_CANCELLED; } else { - SpaceConsole *sc= CTX_wm_space_console(C); console_select_offset(sc, len); } @@ -468,7 +467,6 @@ static int delete_exec(bContext *C, wmOperator *op) return OPERATOR_CANCELLED; } else { - SpaceConsole *sc= CTX_wm_space_console(C); console_select_offset(sc, -1); } @@ -616,7 +614,6 @@ static int history_append_exec(bContext *C, wmOperator *op) int prev_len= ci->len; if(rem_dupes) { - SpaceConsole *sc= CTX_wm_space_console(C); ConsoleLine *cl; while((cl= console_history_find(sc, ci->line, ci))) |