diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-12 21:58:12 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-12 21:58:12 +0200 |
commit | 66e0014ba651208ab7579797866ab0e4bd9e2b49 (patch) | |
tree | fa4b3456bd7fa121b84e7ad9906d62401923adf2 /src | |
parent | 418f1df54763b79600db1c91c880fbc1007b2e1f (diff) |
patch 8.2.1436: function implementing :substitute has unexpected namev8.2.1436
Problem: Function implementing :substitute has unexpected name.
Solution: Rename from do_sub() to ex_substitute().
Diffstat (limited to 'src')
-rw-r--r-- | src/ex_cmds.c | 2 | ||||
-rw-r--r-- | src/ex_cmds.h | 6 | ||||
-rw-r--r-- | src/ex_docmd.c | 2 | ||||
-rw-r--r-- | src/proto/ex_cmds.pro | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
5 files changed, 8 insertions, 6 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 88161fa2c4..2550f0e30e 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -3553,7 +3553,7 @@ typedef struct { * The usual escapes are supported as described in the regexp docs. */ void -do_sub(exarg_T *eap) +ex_substitute(exarg_T *eap) { linenr_T lnum; long i = 0; diff --git a/src/ex_cmds.h b/src/ex_cmds.h index 508ecb8704..b993ef21a8 100644 --- a/src/ex_cmds.h +++ b/src/ex_cmds.h @@ -1270,7 +1270,7 @@ EXCMD(CMD_rundo, "rundo", ex_rundo, EXCMD(CMD_rviminfo, "rviminfo", ex_viminfo, EX_BANG|EX_FILE1|EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK, ADDR_NONE), -EXCMD(CMD_substitute, "substitute", do_sub, +EXCMD(CMD_substitute, "substitute", ex_substitute, EX_RANGE|EX_WHOLEFOLD|EX_EXTRA|EX_CMDWIN|EX_LOCK_OK, ADDR_LINES), EXCMD(CMD_sNext, "sNext", ex_previous, @@ -1788,7 +1788,7 @@ EXCMD(CMD_bang, "!", ex_bang, EXCMD(CMD_pound, "#", ex_print, EX_RANGE|EX_WHOLEFOLD|EX_COUNT|EX_FLAGS|EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK, ADDR_LINES), -EXCMD(CMD_and, "&", do_sub, +EXCMD(CMD_and, "&", ex_substitute, EX_RANGE|EX_WHOLEFOLD|EX_EXTRA|EX_CMDWIN|EX_LOCK_OK|EX_MODIFY, ADDR_LINES), EXCMD(CMD_star, "*", ex_at, @@ -1806,7 +1806,7 @@ EXCMD(CMD_rshift, ">", ex_operators, EXCMD(CMD_at, "@", ex_at, EX_RANGE|EX_WHOLEFOLD|EX_EXTRA|EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK, ADDR_LINES), -EXCMD(CMD_tilde, "~", do_sub, +EXCMD(CMD_tilde, "~", ex_substitute, EX_RANGE|EX_WHOLEFOLD|EX_EXTRA|EX_CMDWIN|EX_LOCK_OK|EX_MODIFY, ADDR_LINES), diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 502f33e2a5..85d4df6901 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -7343,7 +7343,7 @@ ex_submagic(exarg_T *eap) int magic_save = p_magic; p_magic = (eap->cmdidx == CMD_smagic); - do_sub(eap); + ex_substitute(eap); p_magic = magic_save; } diff --git a/src/proto/ex_cmds.pro b/src/proto/ex_cmds.pro index a9e0658a9b..9036dd205b 100644 --- a/src/proto/ex_cmds.pro +++ b/src/proto/ex_cmds.pro @@ -27,7 +27,7 @@ void ex_change(exarg_T *eap); void ex_z(exarg_T *eap); int check_restricted(void); int check_secure(void); -void do_sub(exarg_T *eap); +void ex_substitute(exarg_T *eap); int do_sub_msg(int count_only); void ex_global(exarg_T *eap); void global_exe(char_u *cmd); diff --git a/src/version.c b/src/version.c index f764e9867d..d4b0afa7be 100644 --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1436, +/**/ 1435, /**/ 1434, |