diff options
author | Ron Yorston | 2021-07-10 11:00:04 +0100 |
---|---|---|
committer | Denys Vlasenko | 2021-07-13 14:42:20 +0200 |
commit | 2759201401cf87a9a8621edd9e5f44dfe838407c (patch) | |
tree | ca9db39df419b242c5ca1981c200dfcee6ec4e35 /scripts/kconfig/lkc_proto.h | |
parent | 95ac4a48f17c2fdd2a10524c0b399e3be72d8f42 (diff) | |
download | busybox-2759201401cf87a9a8621edd9e5f44dfe838407c.zip busybox-2759201401cf87a9a8621edd9e5f44dfe838407c.tar.gz |
vi: allow delimiter in ':s' to be escaped
When regular expressions are allowed in search commands it becomes
possible to escape the delimiter in search/replace commands. For
example, this command will replace '/abc' with '/abc/':
:s/\/abc/\/abc\//g
The code to split the command into 'find' and 'replace' strings
should allow for this possibility.
VI_REGEX_SEARCH isn't enabled by default. When it is:
function old new delta
strchr_backslash - 38 +38
colon 4378 4373 -5
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 38/-5) Total: 33 bytes
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts/kconfig/lkc_proto.h')
0 files changed, 0 insertions, 0 deletions