From 44166f53d5923be4685a69b85166ada40dc1cc10 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Thu, 25 Dec 2025 22:55:32 +0100 Subject: fixed ^S/^Y for search-replacement commands It was returning the range of the search, but not of the inserted text. Since the searched text is deleted, the range of the insertion is more useful. It's also what was documented and what DEC TECO does. --- tests/testsuite.at | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/testsuite.at b/tests/testsuite.at index ec6b034..a360840 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -291,6 +291,8 @@ AT_SETUP([Search and insertion ranges]) TE_CHECK([[@I/XXYYZZ/^SC ."N(0/0)' C @S/YY/ HK ^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) TE_CHECK([[@I/XXYYZZ/J @FD/^EMZ/ ^S+2"N(0/0)']], 0, ignore, ignore) +TE_CHECK([[@I/ABCDEF/J @^U-/1234/ @FR/ABC// ^S+4"N(0/0)']], 0, ignore, ignore) +TE_CHECK([[@I/ABCDEF/J @FS/ABC/1234/ ^S+4"N(0/0)']], 0, ignore, ignore) TE_CHECK([[@^Ua/XYZ/ Ga ^S+3"N(0/0)']], 0, ignore, ignore) # NOTE: EN currently inserts another trailing linefeed. TE_CHECK([[@EN/*/XYZ/ ^S+4"N(0/0)']], 0, ignore, ignore) -- cgit v1.2.3