From 32bb5f440b0a029c0cff0b6840bc19f3abb20ddd Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 3 May 2025 14:18:15 +0300 Subject: disallow command-line termination ($$) while editing the command-line replacement register (after `{`) I found that terminating the command-line while editing the replacement register, leaves you in a hard-to-recover state. You can/should no longer call `}`, so you would have to go back to the last buffer (Q*U*). Instead, this is now checked against and a test case has also been added. --- tests/testsuite.at | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/testsuite.at b/tests/testsuite.at index dabab92..d770232 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -250,6 +250,11 @@ AT_CHECK([$SCITECO_CMDLINE "@I/ @:foo ${RUBOUT_WORD}/ Z-3\"N(0/0)'"], 0, ignore AT_FAIL_IF([$GREP "^Error:" stderr]) AT_CLEANUP +AT_SETUP([Command-line termination while editing replacement register]) +AT_CHECK([$SCITECO_CMDLINE '{$$}'], 0, ignore, stderr) +AT_FAIL_IF([! $GREP "^Error:" stderr]) +AT_CLEANUP + AT_BANNER([Standard library]) AT_SETUP([Command line opener]) -- cgit v1.2.3