From afc50684cdb38815573fdff0f4fff47cc4eb00a8 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 28 Jul 2025 01:35:42 +0300 Subject: =/==/===: fixed detection of execution from the end of the command-line In particular, fixes the test case `3<255=>` which would print only one number in interactive mode. --- src/cmdline.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/cmdline.h') diff --git a/src/cmdline.h b/src/cmdline.h index be97c74..ebdf1e1 100644 --- a/src/cmdline.h +++ b/src/cmdline.h @@ -84,14 +84,6 @@ teco_cmdline_keymacro_c(gchar key, GError **error) return TRUE; } -/** Check whether we are executing directly from the end of the command line. */ -static inline gboolean -teco_cmdline_is_executing(teco_machine_main_t *ctx) -{ - return G_UNLIKELY(ctx == &teco_cmdline.machine && - ctx->macro_pc == teco_cmdline.effective_len); -} - extern gboolean teco_quit_requested; /* -- cgit v1.2.3