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. --- tests/testsuite.at | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/testsuite.at b/tests/testsuite.at index be064cd..38035a8 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -332,6 +332,9 @@ AT_SETUP([Opening/closing buffers]) TE_CHECK([[@EB/foo/ @I/XXX/ -EF :Q*"N(0/0)']], 0, ignore, ignore) TE_CHECK([[@EB/foo/ @I/XXX/ :EF :Q*"N(0/0)' @EB/foo/ Z-3"N(0/0)']], 0, ignore, ignore) TE_CHECK([[@EB/foo/ 1EF :Q*"=(0/0)']], 0, ignore, ignore) +# Open by id +TE_CHECK([[1@EB//]], 0, ignore, ignore) +TE_CHECK([[1@EB/foo/]], 1, ignore, ignore) AT_CLEANUP AT_SETUP([Read file into current buffer]) -- cgit v1.2.3