aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-05-03 14:18:15 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-05-03 14:18:15 +0300
commit32bb5f440b0a029c0cff0b6840bc19f3abb20ddd (patch)
treee6a4d942cf5c5b05826722f84ac51673037034b1 /tests
parent850000492cd43e40109b3a11c8613b5fff577755 (diff)
downloadsciteco-32bb5f440b0a029c0cff0b6840bc19f3abb20ddd.tar.gz
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/testsuite.at5
1 files changed, 5 insertions, 0 deletions
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])