summaryrefslogtreecommitdiff
path: root/testsuite/uncompress.tests
diff options
context:
space:
mode:
authorRon Yorston2021-05-20 08:26:47 +0100
committerDenys Vlasenko2021-06-02 06:16:36 +0200
commitd95f89ec576c5a0ecba24ead7f012f1fd8ea7b9b (patch)
treefd9f5edf65f74dc73df6e447da60b724e80041af /testsuite/uncompress.tests
parentf193aeac1fe27c94d0f0b27314777df41480feb6 (diff)
downloadbusybox-d95f89ec576c5a0ecba24ead7f012f1fd8ea7b9b.zip
busybox-d95f89ec576c5a0ecba24ead7f012f1fd8ea7b9b.tar.gz
vi: make cursor positioning more vi compatible
Commit 24effc7a3 (vi: cursor positioning after whole-line 'y') tried to save a few bytes by treating whole-line deletion the same as whole-line yank. If the deletion removed the last lines of the file the cursor was left beyond the end of the file. Revert the part of the commit related to whole-line deletion. Position the cursor on the first non-whitespace character of the line when whole lines are 'put'. function old new delta do_cmd 4759 4781 +22 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/0 up/down: 22/0) Total: 22 bytes Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/uncompress.tests')
0 files changed, 0 insertions, 0 deletions