diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-23 16:37:03 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-23 16:37:03 +0200 |
commit | 8930caaa1a283092aca81fdbc3fcf15c7eadb197 (patch) | |
tree | b88ad868a29b0c26a4224cce4c69f35b9655dfec /src/match.c | |
parent | 8d5f6af5e5a5edfd3fa95f33540c204f4e74331e (diff) |
patch 8.2.1280: Ex command error cannot contain an argumentv8.2.1280
Problem: Ex command error cannot contain an argument.
Solution: Add ex_errmsg() and translate earlier. Use e_trailing_arg where
possible.
Diffstat (limited to 'src/match.c')
-rw-r--r-- | src/match.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/match.c b/src/match.c index 024ba374f0..2bb98fe9f3 100644 --- a/src/match.c +++ b/src/match.c @@ -1329,7 +1329,7 @@ ex_match(exarg_T *eap) if (*end != NUL && !ends_excmd2(end, skipwhite(end + 1))) { vim_free(g); - eap->errmsg = e_trailing; + eap->errmsg = ex_errmsg(e_trailing_arg, end); return; } if (*end != *p) |