diff options
author | Ron Yorston | 2021-05-20 08:27:19 +0100 |
---|---|---|
committer | Denys Vlasenko | 2021-06-02 06:16:36 +0200 |
commit | 16e2fa9049d5ddd7d4c8aea875dad91e07868685 (patch) | |
tree | db0cd0f8737feeff6663e0feaf4f4c72613e7919 /testsuite/uniq.tests | |
parent | d95f89ec576c5a0ecba24ead7f012f1fd8ea7b9b (diff) | |
download | busybox-16e2fa9049d5ddd7d4c8aea875dad91e07868685.zip busybox-16e2fa9049d5ddd7d4c8aea875dad91e07868685.tar.gz |
vi: make autoindent respect expandtab setting
Autoindent took a copy of the indent from a neighbouring line, which
may not have respected the expandtab setting.
Determine the target column and construct a suitable indent. This
will consist entirely of spaces if expandtab is enabled or an
efficient combination of tabs and spaces otherwise.
function old new delta
char_insert 719 741 +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/uniq.tests')
0 files changed, 0 insertions, 0 deletions