diff options
author | Ron Yorston | 2021-06-16 14:45:10 +0100 |
---|---|---|
committer | Denys Vlasenko | 2021-06-16 23:53:03 +0200 |
commit | f1d21b743485defb39fada03b27878efb1e2f7e3 (patch) | |
tree | d46277dd061921c86e97571bf96f899391501baf /modutils | |
parent | e7a8e8e30c31977476ab3be2fadb38c2bcb92482 (diff) | |
download | busybox-f1d21b743485defb39fada03b27878efb1e2f7e3.zip busybox-f1d21b743485defb39fada03b27878efb1e2f7e3.tar.gz |
vi: keep autoindent if line isn't empty
When ESC is entered to leave insert mode any autoindent should only
be removed if there's no content beyond the indent. This may be the
case if a line has been split by entering insert mode and then
entering a CR.
Add a check to ensure there's only a newline after the indent.
function old new delta
char_insert 912 929 +17
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 17/0) Total: 17 bytes
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'modutils')
0 files changed, 0 insertions, 0 deletions