diff options
author | Ron Yorston | 2022-03-03 11:35:46 +0000 |
---|---|---|
committer | Denys Vlasenko | 2022-03-04 22:57:05 +0100 |
commit | fc7868602ecf0d761a9a877141add4a9b6918d02 (patch) | |
tree | 48f24ea664b9ad54a4b7ae8b028522d68504c1b2 /testsuite/awk.tests | |
parent | 55f969a006109703dd056bee1b6c1d11b0602449 (diff) | |
download | busybox-fc7868602ecf0d761a9a877141add4a9b6918d02.zip busybox-fc7868602ecf0d761a9a877141add4a9b6918d02.tar.gz |
vi: improved handling of backspace in replace mode
In replace mode ('R' command) the backspace character should get
special treatment:
- backspace only goes back to the start of the replacement;
- backspacing over replaced characters restores the original text.
Prior to this commit BusyBox vi deleted the characters both before
and after the cursor in replace mode.
function old new delta
undo_pop - 235 +235
char_insert 858 884 +26
indicate_error 81 84 +3
find_range 654 657 +3
static.text_yank 77 79 +2
do_cmd 4486 4243 -243
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 4/1 up/down: 269/-243) Total: 26 bytes
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/awk.tests')
0 files changed, 0 insertions, 0 deletions