summaryrefslogtreecommitdiff
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-02 21:13:25 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-02 21:13:25 +0200
commite8c4abbbd711af8fd3ed85ea69e9ac3d63a0d879 (patch)
tree0101dc0b69343972a82db39af16612334fbc0a8d /src/ex_cmds.c
parent2c869deeb7658b6b02e525ff9412fc4a0c968688 (diff)
downloadvim-git-e8c4abbbd711af8fd3ed85ea69e9ac3d63a0d879.tar.gz
patch 8.2.0502: Vim9: some code is not testedv8.2.0502
Problem: Vim9: some code is not tested. Solution: Add more tests. Fix uncovered problems.
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index ce5db8860..bd114631b 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -451,7 +451,7 @@ ex_sort(exarg_T *eap)
}
else if (!ASCII_ISALPHA(*p) && regmatch.regprog == NULL)
{
- s = skip_regexp(p + 1, *p, TRUE, NULL);
+ s = skip_regexp(p + 1, *p, TRUE);
if (*s != *p)
{
emsg(_(e_invalpat));
@@ -3626,7 +3626,7 @@ do_sub(exarg_T *eap)
which_pat = RE_LAST; // use last used regexp
delimiter = *cmd++; // remember delimiter character
pat = cmd; // remember start of search pat
- cmd = skip_regexp(cmd, delimiter, p_magic, &eap->arg);
+ cmd = skip_regexp_ex(cmd, delimiter, p_magic, &eap->arg, NULL);
if (cmd[0] == delimiter) // end delimiter found
*cmd++ = NUL; // replace it with a NUL
}
@@ -4801,7 +4801,7 @@ ex_global(exarg_T *eap)
if (delim)
++cmd; // skip delimiter if there is one
pat = cmd; // remember start of pattern
- cmd = skip_regexp(cmd, delim, p_magic, &eap->arg);
+ cmd = skip_regexp_ex(cmd, delim, p_magic, &eap->arg, NULL);
if (cmd[0] == delim) // end delimiter found
*cmd++ = NUL; // replace it with a NUL
}
@@ -6441,7 +6441,7 @@ skip_vimgrep_pat(char_u *p, char_u **s, int *flags)
if (s != NULL)
*s = p + 1;
c = *p;
- p = skip_regexp(p + 1, c, TRUE, NULL);
+ p = skip_regexp(p + 1, c, TRUE);
if (*p != c)
return NULL;