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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio-commands.c b/src/stdio-commands.c
index 3a1b320..565f442 100644
--- a/src/stdio-commands.c
+++ b/src/stdio-commands.c
@@ -38,7 +38,7 @@ static inline gboolean
teco_cmdline_is_executing(teco_machine_main_t *ctx)
{
return ctx == &teco_cmdline.machine &&
- ctx->macro_pc == teco_cmdline.effective_len;
+ ctx->macro_pc == teco_cmdline_ssm(SCI_GETCURRENTPOS, 0, 0);
}
static gboolean is_executing = FALSE;