diff options
author | Ron Yorston | 2022-03-18 11:30:38 +0000 |
---|---|---|
committer | Denys Vlasenko | 2022-06-26 19:38:31 +0200 |
commit | 2617a5e4c600b4577b2c18f794701276e55da43b (patch) | |
tree | cb1b1e0065e87a01e5262b7763b9c8328ee1121b /scripts/Makefile.IMA | |
parent | af3b585815de5af367995d6064d994394b46c928 (diff) | |
download | busybox-2617a5e4c600b4577b2c18f794701276e55da43b.zip busybox-2617a5e4c600b4577b2c18f794701276e55da43b.tar.gz |
vi: handle autoindent in 'cc' command
When the 'cc' command is invoked with autoindent enabled it
should use the indent of the first line being changed.
The size of the indent has to be established before char_insert()
is called as the lines being changed are deleted. Introduce a
new global variable, newindent, to handle this. The indentcol
global is now effectively a static variable in char_insert().
function old new delta
do_cmd 4247 4308 +61
vi_main 416 422 +6
char_insert 891 875 -16
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 67/-16) Total: 51 bytes
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts/Makefile.IMA')
0 files changed, 0 insertions, 0 deletions