diff options
| author | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2025-12-25 22:55:32 +0100 |
|---|---|---|
| committer | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2025-12-25 22:55:32 +0100 |
| commit | 44166f53d5923be4685a69b85166ada40dc1cc10 (patch) | |
| tree | c8ab85fa87cfb01770c9be826822fbf6f1bdcf1f /tests/testsuite.at | |
| parent | 0c89fb700957e411885e7e7835e15f441e8b5e84 (diff) | |
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.
Diffstat (limited to 'tests/testsuite.at')
| -rw-r--r-- | tests/testsuite.at | 2 |
1 files changed, 2 insertions, 0 deletions
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) |
