diff options
author | Ron Yorston | 2021-04-17 09:25:47 +0100 |
---|---|---|
committer | Denys Vlasenko | 2021-04-20 11:21:43 +0200 |
commit | f277c9eebb91a46cbd795c34aa64ee8b6a2e448c (patch) | |
tree | 184512a390ddbe64607d2bd60fbcd26b5aa1b083 /scripts/kconfig/lxdialog/.gitignore | |
parent | 310ef232809b34a75c120629b7b2c0d4af0dd50f (diff) | |
download | busybox-f277c9eebb91a46cbd795c34aa64ee8b6a2e448c.zip busybox-f277c9eebb91a46cbd795c34aa64ee8b6a2e448c.tar.gz |
vi: make de-indentation with ctrl-D more like vim
Commit ac6495f6f (vi: allow ctrl-D to reduce indentation) treated
ctrl-D during autoindent as a backspace. This was adequate for
indentation using tabs but doesn't work well with the expandtab
option. In the latter case it's necessary to backspace over all
the spaces.
Make ctrl-D work correctly when spaces are present in the indent.
Also, make it behave more like vim:
- ctrl-D is independent of autoindent;
- indentation is reduced even when the cursor isn't positioned at
the end of the indent.
function old new delta
char_insert 679 717 +38
get_column - 37 +37
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/0 up/down: 75/0) Total: 75 bytes
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts/kconfig/lxdialog/.gitignore')
0 files changed, 0 insertions, 0 deletions