diff options
author | Ron Yorston | 2021-04-25 11:51:55 +0100 |
---|---|---|
committer | Denys Vlasenko | 2021-04-28 11:29:33 +0200 |
commit | 7a8ceb4eb25f1b136bf9a79b04d46dc4d7f440a7 (patch) | |
tree | bbc4bc69aa3e42f2750c4fe5b5a6a97f2b9eb419 /init/Kbuild.src | |
parent | 81f9a0035b857206ac03afb729be3c8438f218b9 (diff) | |
download | busybox-7a8ceb4eb25f1b136bf9a79b04d46dc4d7f440a7.zip busybox-7a8ceb4eb25f1b136bf9a79b04d46dc4d7f440a7.tar.gz |
vi: changes to line addresses for colon commands
Make line addresses behave more like vi:
- Vi allows the user to enter an arbitrary number of addresses,
though only the last two are used. This simplifies get_address()
by reducing the amount of state that needs to be carried.
- When a command requires a single address the last one entered is
used.
- If addresses are separated by a ';' instead of a ',' the current
line is updated to the left address. This may be useful when a
search is used to specify a range, e.g. ':/first/;/last/d'.
- When the last address is empty it should refer to the current line.
function old new delta
colon 3855 3834 -21
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-21) Total: -21 bytes
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'init/Kbuild.src')
0 files changed, 0 insertions, 0 deletions