From 29e11f68bae0364034fb692062403735bec8d07a Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 19 Jul 2025 17:38:06 +0300 Subject: now accepts a numeric argument to specify the buffer to save * In this case we always save the given buffer and never the current Q-Register. * The current Q-Register is only saved without any numeric argument. The same semantics make sense for so that Q*EF closes the current buffer even when editing a Q-Register. * This variant is present in Video TECO. --- tests/testsuite.at | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/testsuite.at') diff --git a/tests/testsuite.at b/tests/testsuite.at index 8c6dcc8..44d90bd 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -248,6 +248,13 @@ TE_CHECK([[@^Ua/test/ @E%a/saveqreg.txt/ @EB/saveqreg.txt/ Z-4"N(0/0)']], 0, ign TE_CHECK([[@E%$/saveqreg.txt/ @EB/saveqreg.txt/ Z-:Q$"N(0/0)']], 0, ignore, ignore) AT_CLEANUP +AT_SETUP([Saving documents]) +TE_CHECK([[@I/test/ @EW/savebuf.txt/ :Q*"=(0/0)']], 0, ignore, ignore) +TE_CHECK([[@I/test/ @EB/foo/ 1@EW/savebuf.txt/]], 0, ignore, ignore) +AT_CHECK([test `wc -c