diff options
author | Ron Yorston | 2021-04-10 11:17:38 +0100 |
---|---|---|
committer | Denys Vlasenko | 2021-04-11 00:18:55 +0200 |
commit | 951c6ded3aa7f0dc414306e27aed8b2785965857 (patch) | |
tree | dc854fc8049dd3e1cbba0ea46bafd230289bf518 /sysklogd/klogd.c | |
parent | a54450248b063afd96530821020872bfc9ec9997 (diff) | |
download | busybox-951c6ded3aa7f0dc414306e27aed8b2785965857.zip busybox-951c6ded3aa7f0dc414306e27aed8b2785965857.tar.gz |
vi: make put commands more like vi
Make the put commands 'p' and 'P' behave more like vi:
- allow a repetition count to be specified;
- when the text being inserted doesn't include a newline the cursor
should be positioned at the end of the inserted text.
function old new delta
do_cmd 4765 4842 +77
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 77/0) Total: 77 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 'sysklogd/klogd.c')
0 files changed, 0 insertions, 0 deletions