diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-06-07 13:58:39 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-06-07 13:58:39 +0300 |
commit | 59d1188feb5c037eeffe6ba782ab362d2bb46a2d (patch) | |
tree | 14910c4d3d9fb0874ca06562177f4adfa1162132 /tests/testsuite.at | |
parent | 7c182a05d8127e184dca239073569297f2618b8b (diff) | |
download | sciteco-59d1188feb5c037eeffe6ba782ab362d2bb46a2d.tar.gz |
added <FN> as a search-and-replace variant of <N>
* This is not in Video TECO, but TECO-11 has a search-and-replace variant of <N>.
<N> 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.
* <N> and <FN> 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 <N> and <FN>.
Diffstat (limited to 'tests/testsuite.at')
-rw-r--r-- | tests/testsuite.at | 7 |
1 files changed, 7 insertions, 0 deletions
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) |