diff options
author | Ron Yorston | 2021-04-25 11:54:24 +0100 |
---|---|---|
committer | Denys Vlasenko | 2021-04-28 11:29:33 +0200 |
commit | dadd90974639c0b8cb0561eb946746ca2678b5fb (patch) | |
tree | 711ff6b44c1352d22f23321564dcd27eb35b6e2a /testsuite/dd/dd-accepts-of | |
parent | e6bc8a29a9f5e679f5c2f8e1ab3541dc99752350 (diff) | |
download | busybox-dadd90974639c0b8cb0561eb946746ca2678b5fb.zip busybox-dadd90974639c0b8cb0561eb946746ca2678b5fb.tar.gz |
vi: improvements to ':read' command
Improvements to ':read':
- When a file is read into the current buffer the cursor should be
placed on the first line read.
- If invoked without supplying a filename the current filename should
be used. This is similar to how ':edit' works.
- The code for ':edit' included an explicit check that the current
filename was non-empty. Both vim and traditional vi accept non-empty
filenames, only issuing an error message when an attempt to use such
a name fails.
- Allow undo of a file read.
function old new delta
file_insert 367 382 +15
colon 3841 3848 +7
.rodata 105236 105218 -18
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 22/-18) Total: 4 bytes
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/dd/dd-accepts-of')
0 files changed, 0 insertions, 0 deletions