summaryrefslogtreecommitdiff
path: root/libbb/xfuncs.c
diff options
context:
space:
mode:
authorRon Yorston2021-04-10 11:16:47 +0100
committerDenys Vlasenko2021-04-11 00:18:55 +0200
commitfe76569daa88429276e72dc0c51c0b58d275aee7 (patch)
treec97b2ab3277f5bb228a49cb09c888488152546b6 /libbb/xfuncs.c
parentb18c7bf702b2d7d967b2baf7d70fd8c408191eb4 (diff)
downloadbusybox-fe76569daa88429276e72dc0c51c0b58d275aee7.zip
busybox-fe76569daa88429276e72dc0c51c0b58d275aee7.tar.gz
vi: allow 'r' command to be aborted, repeated
Make the 'r' command behave more like vi: - abort the command if ESC is entered after the 'r'; - allow a repeat count to be entered before the 'r'; - if the repeat count exceeds the space available on the line don't change any characters and issue an alert. function old new delta do_cmd 4679 4746 +67 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/0 up/down: 67/0) Total: 67 bytes v2: Don't break build when FEATURE_VI_UNDO is disabled. Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/xfuncs.c')
0 files changed, 0 insertions, 0 deletions