diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-07-28 01:35:42 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-07-28 01:35:42 +0300 |
commit | afc50684cdb38815573fdff0f4fff47cc4eb00a8 (patch) | |
tree | 9a7adf6bf02f69218f144de7ddbc9c682fab06e2 /src/cmdline.h | |
parent | dfa4394c1df45755de955260b1d7412c673a7ca0 (diff) | |
download | sciteco-afc50684cdb38815573fdff0f4fff47cc4eb00a8.tar.gz |
=/==/===: 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.
Diffstat (limited to 'src/cmdline.h')
-rw-r--r-- | src/cmdline.h | 8 |
1 files changed, 0 insertions, 8 deletions
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; /* |