aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2024-10-18 14:28:08 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2024-10-18 14:40:13 +0300
commit8fedd523deb07a33fc6ef786d57fd904ffecc8f5 (patch)
tree07cf57385ffc3f06fb328a2e9b827813773a6fb3 /tests
parent70019f624a8d188cf30dcc8b1eb9440a6cffb49c (diff)
downloadsciteco-8fedd523deb07a33fc6ef786d57fd904ffecc8f5.tar.gz
fixed the "Editing local registers in macro calls" check
* The previous check could result in false positives if you are editing a local Q-Register, that will be destroyed at the end of the current macro frame, and call another non-colon modified macro. * It must instead be invalid to keep the register edited only if it belongs to the local Q-Registers that are about to be freed. In other words, the table that the currently edited Q-Register belongs to, must be the one we're about to destroy. * This fixes the solarized.toggle (F5) macro when using the Solarized color scheme.
Diffstat (limited to 'tests')
-rw-r--r--tests/testsuite.at1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 676ca59..7769cb7 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -97,6 +97,7 @@ AT_CLEANUP
AT_SETUP([Editing local registers in macro calls])
AT_CHECK([$SCITECO -e '@^Ua{@EQ.x//} :Ma @^U.x/FOO/'], 0, ignore, ignore)
AT_CHECK([$SCITECO -e '@^Ua{@EQ.x//} Ma @^U.x/FOO/'], 1, ignore, ignore)
+AT_CHECK([$SCITECO -e '@^Ua{@EQ.x// Mb Q*U*} Ma'], 0, ignore, ignore)
AT_CLEANUP
AT_SETUP([Loading files into Q-Registers])