diff options
author | Ron Yorston | 2021-04-06 13:43:32 +0100 |
---|---|---|
committer | Denys Vlasenko | 2021-04-11 00:18:55 +0200 |
commit | 6220b4d531a64825eb9698e98afa6be2d92abd8d (patch) | |
tree | fb19140dd2a7ae9e83eba4ca9e37fc2b81a29527 /libbb/xrealloc_vector.c | |
parent | 951c6ded3aa7f0dc414306e27aed8b2785965857 (diff) | |
download | busybox-6220b4d531a64825eb9698e98afa6be2d92abd8d.zip busybox-6220b4d531a64825eb9698e98afa6be2d92abd8d.tar.gz |
vi: make the substitute command more like vi
Make the ':s/find/replace/g' command behave more like vi:
- the final delimiter is optional if no flag is specified;
- the cursor is moved to the first visible character of the last
line where a substitution was made;
- a warning is displayed if no substitution was made.
function old new delta
colon 3156 3212 +56
.rodata 105133 105142 +9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 65/0) Total: 65 bytes
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/xrealloc_vector.c')
0 files changed, 0 insertions, 0 deletions