diff options
author | Ron Yorston <rmy@pobox.com> | 2020-01-23 15:31:19 +0000 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-01-29 14:01:50 +0100 |
commit | 16bcd504a32e6a7bf2015ffb241133f9ead6100b (patch) | |
tree | 773faace280d73803d7390f496776bedea655a17 /shell/ash_test/ash-psubst/tick_huge.tests | |
parent | b0c711e64f868fcab0711d8d0f86aaaa4ed93158 (diff) | |
download | busybox-16bcd504a32e6a7bf2015ffb241133f9ead6100b.tar.gz |
vi: fixes to string search in colon commands, closes 10321
Handling of string searches in colon commands (e.g ':/pat1/,/pat2/cmd')
differ from standard vi:
- As reported in bug 10321 such searches can't be repeated using the
'n' command. This is because the last search pattern isn't updated.
- The search also can't be repeated using the command '://' because
an empty search pattern doesn't imply the use of the last search
pattern.
- Such searches should start on the line after the current line,
otherwise '://' never moves to the next occurrence of the pattern.
This can also affect other cases where line ranges are specified
using search patterns.
Fix these various issues.
function old new delta
get_one_address 325 342 +17
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-psubst/tick_huge.tests')
0 files changed, 0 insertions, 0 deletions