diff options
author | Ron Yorston <rmy@pobox.com> | 2021-05-20 08:27:19 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-02 06:16:36 +0200 |
commit | 16e2fa9049d5ddd7d4c8aea875dad91e07868685 (patch) | |
tree | db0cd0f8737feeff6663e0feaf4f4c72613e7919 /editors/patch_toybox.c | |
parent | d95f89ec576c5a0ecba24ead7f012f1fd8ea7b9b (diff) |
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 'editors/patch_toybox.c')
0 files changed, 0 insertions, 0 deletions