diff options
author | Ron Yorston | 2021-03-28 13:23:12 +0100 |
---|---|---|
committer | Denys Vlasenko | 2021-03-29 12:16:21 +0200 |
commit | d56da680577ae5ad43833040a310706e8331c684 (patch) | |
tree | f49cd7e3e3361fc98e488a30c7839db76101d9c4 /testsuite/cp | |
parent | 8b571bd7b507c5dbdf8bb2bd804047ed66ea9809 (diff) | |
download | busybox-d56da680577ae5ad43833040a310706e8331c684.zip busybox-d56da680577ae5ad43833040a310706e8331c684.tar.gz |
vi: improve operations involving paragraph movement
Movement by paragraph doesn't always involve whole lines. If the
cursor is positioned in the middle of a line deleting to either end
of the paragraph will result in one partial line and zero or more
full lines.
Adjust the end of ranges delimited by paragraph movement to more
closely match what vi does.
function old new delta
find_range 467 518 +51
at_eof - 49 +49
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/0 up/down: 100/0) Total: 100 bytes
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/cp')
0 files changed, 0 insertions, 0 deletions