diff options
-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 88161fa2c..2550f0e30 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 508ecb870..b993ef21a 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 502f33e2a..85d4df690 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 a9e0658a9..9036dd205 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 f764e9867..d4b0afa7b 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, |