diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-02 21:13:25 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-02 21:13:25 +0200 |
commit | e8c4abbbd711af8fd3ed85ea69e9ac3d63a0d879 (patch) | |
tree | 0101dc0b69343972a82db39af16612334fbc0a8d /src/ex_docmd.c | |
parent | 2c869deeb7658b6b02e525ff9412fc4a0c968688 (diff) |
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_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index fb084d32d5..b04e2832a7 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -3663,7 +3663,7 @@ get_address( } if (skip) // skip "/pat/" { - cmd = skip_regexp(cmd, c, (int)p_magic, NULL); + cmd = skip_regexp(cmd, c, (int)p_magic); if (*cmd == c) ++cmd; } @@ -6123,7 +6123,7 @@ ex_open(exarg_T *eap) { // ":open /pattern/": put cursor in column found with pattern ++eap->arg; - p = skip_regexp(eap->arg, '/', p_magic, NULL); + p = skip_regexp(eap->arg, '/', p_magic); *p = NUL; regmatch.regprog = vim_regcomp(eap->arg, p_magic ? RE_MAGIC : 0); if (regmatch.regprog != NULL) @@ -7857,7 +7857,7 @@ ex_findpat(exarg_T *eap) { whole = FALSE; ++eap->arg; - p = skip_regexp(eap->arg, '/', p_magic, NULL); + p = skip_regexp(eap->arg, '/', p_magic); if (*p) { *p++ = NUL; |