Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2022-03-18 14:30:38 +0300
committerDenys Vlasenko <vda.linux@googlemail.com>2022-06-26 20:38:31 +0300
commit2617a5e4c600b4577b2c18f794701276e55da43b (patch)
treecb1b1e0065e87a01e5262b7763b9c8328ee1121b /miscutils
parentaf3b585815de5af367995d6064d994394b46c928 (diff)
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 'miscutils')
0 files changed, 0 insertions, 0 deletions