aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/stdio-commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio-commands.c')
-rw-r--r--src/stdio-commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stdio-commands.c b/src/stdio-commands.c
index 34179c3..94da3c7 100644
--- a/src/stdio-commands.c
+++ b/src/stdio-commands.c
@@ -139,7 +139,7 @@ static teco_state_t *
teco_state_print_decimal_input(teco_machine_main_t *ctx, gunichar chr, GError **error)
{
if (chr == '=')
- return &teco_state_print_octal;
+ TECO_RETURN(ctx, &teco_state_print_octal, error);
if (ctx->flags.mode == TECO_MODE_NORMAL) {
if (G_LIKELY(!is_executing) && !teco_print(ctx, 10, error))
@@ -197,7 +197,7 @@ teco_state_print_octal_input(teco_machine_main_t *ctx, gunichar chr, GError **er
return NULL;
teco_expressions_pop_num(0);
}
- return &teco_state_start;
+ TECO_RETURN(ctx, &teco_state_start, error);
}
if (ctx->flags.mode == TECO_MODE_NORMAL) {