diff options
Diffstat (limited to 'src/nvim/match.c')
-rw-r--r-- | src/nvim/match.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/match.c b/src/nvim/match.c index 8c72b13bc2..ba587c4141 100644 --- a/src/nvim/match.c +++ b/src/nvim/match.c @@ -1193,7 +1193,7 @@ void ex_match(exarg_T *eap) if (!eap->skip) { if (*end != NUL && !ends_excmd(*skipwhite((char *)end + 1))) { xfree(g); - eap->errmsg = e_trailing; + eap->errmsg = ex_errmsg(e_trailing_arg, (const char *)end); return; } if (*end != *p) { |