From a62323baa454b4a6ac698067043c8d4cf50c6561 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 7 Oct 2025 00:58:11 +0300 Subject: throw an error immediately after nEB if n != 0 * When typing nEBfilename$ (n != 0) you would find out that the construct is invalid only after typing out the entire command. We now throw an error immediately, ie. only Escape or string termination will be expected in interactive mode. * In batch mode, nothing should have changed. --- src/parser.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/parser.h') diff --git a/src/parser.h b/src/parser.h index 095f523..2308925 100644 --- a/src/parser.h +++ b/src/parser.h @@ -494,6 +494,9 @@ struct teco_machine_main_t { * This is tracked even in parse-only mode. */ guint modifier_at : 1; + + /** whether command accepts a filename */ + guint allow_filename : 1; } flags; /** The nesting level of braces */ -- cgit v1.2.3