diff options
author | Ron Yorston | 2021-04-25 11:55:42 +0100 |
---|---|---|
committer | Denys Vlasenko | 2021-04-28 11:29:33 +0200 |
commit | acd3079fd1be1b350ab3f75338de67ad1e933024 (patch) | |
tree | c8f9c6f4ab15b8f3a702b0ff42dca98a224925f6 /shell/ash_test | |
parent | 852ffbee341ccbcdb6400ad5cb4688b410e236b5 (diff) | |
download | busybox-acd3079fd1be1b350ab3f75338de67ad1e933024.zip busybox-acd3079fd1be1b350ab3f75338de67ad1e933024.tar.gz |
vi: expand '%' and '#' in colon commands
Track the current and alternate filenames. The placeholders '%'
and '#' can be used in arguments to colon commands to represent
the current and alternate filenames respectively. Backslash can
be used to allow literal '%' and '#' characters to be entered.
This feature is controlled by the configuration option
FEATURE_VI_COLON_EXPAND.
function old new delta
expand_args - 198 +198
colon 3751 3927 +176
update_filename - 70 +70
init_filename - 48 +48
.rodata 105218 105239 +21
get_one_char 115 124 +9
edit_file 835 838 +3
do_cmd 4724 4727 +3
init_text_buffer 190 172 -18
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 5/1 up/down: 528/-18) Total: 510 bytes
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test')
0 files changed, 0 insertions, 0 deletions