diff options
author | Ron Yorston | 2021-04-15 12:03:58 +0100 |
---|---|---|
committer | Denys Vlasenko | 2021-04-15 13:09:12 +0200 |
commit | ac6495f6fbb97cb59ccd0a6744660346fd9b80b3 (patch) | |
tree | eb4bf13d5b3f9fda9e1fe0c8c658d2d9d5a8eeaa /coreutils/tee.c | |
parent | d6e653d667bc1eb343014508a8bddb3dd4945f78 (diff) | |
download | busybox-ac6495f6fbb97cb59ccd0a6744660346fd9b80b3.zip busybox-ac6495f6fbb97cb59ccd0a6744660346fd9b80b3.tar.gz |
vi: allow ctrl-D to reduce indentation
When whitespace has been automatically added to a new line due to
autoindent entering ctrl-D should reduce the level of indentation.
Implement an approximation of this by treating ctrl-D as backspace.
For the common case of indentation using tabs this is good enough.
My attempt at a full implementation was three times bigger.
function old new delta
char_insert 476 531 +55
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 55/0) Total: 55 bytes
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/tee.c')
0 files changed, 0 insertions, 0 deletions