From 59d1188feb5c037eeffe6ba782ab362d2bb46a2d Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 7 Jun 2025 13:58:39 +0300 Subject: added as a search-and-replace variant of * This is not in Video TECO, but TECO-11 has a search-and-replace variant of . however is a search-over-page-boundary command in TECO-11, which has been repurposed as search-over-buffer-boundary in Video TECO and SciTECO. * and no longer call the edit hook after *every* invocation, but only if the current buffer changes. This is not really relevant with the current default hook from fallback.teco_ini, but might be depending on the use case. * Added testcases both for and . --- tests/testsuite.at | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') diff --git a/tests/testsuite.at b/tests/testsuite.at index fd93aa4..8155ce4 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -203,6 +203,13 @@ TE_CHECK([[-^X @^Um{^X} Mm-0"N(0/0)']], 0, ignore, ignore) TE_CHECK([[@I/XYZ/ J ::@S/X/"F(0/0)' H::@S/Z/"S(0/0)']], 0, ignore, ignore) AT_CLEANUP +AT_SETUP([Searches over buffer boundaries]) +TE_CHECK([[@I/XYZ/J @EB/foo/ @I/XZY/J @:N/Z/"F(0/0)' Q*-2"N(0/0)' + @:N//"F(0/0)' Q*-1"N(0/0)']], 0, ignore, ignore) +TE_CHECK([[@I/XYZ/J @EB/foo/ @I/XZY/J @:FN/Z/0/"F(0/0)' Q*-2"N(0/0)' + @:FN///"F(0/0)' Q*-1"N(0/0)']], 0, ignore, ignore) +AT_CLEANUP + AT_SETUP([Search and insertion ranges]) TE_CHECK([[@I/XXYYZZ/^SC ."N(0/0)' C @S/YY/^YU1U0 Q0-2"N(0/0)' Q1-4"N(0/0)']], 0, ignore, ignore) TE_CHECK([[@I/XXYYZZ/J @S/XX^E[^EMY]/ 1^YXa :Qa-2"N(0/0)']], 0, ignore, ignore) -- cgit v1.2.3