Mercurial > vim
comparison src/match.c @ 21459:a422bd80b434 v8.2.1280
patch 8.2.1280: Ex command error cannot contain an argument
Commit: https://github.com/vim/vim/commit/8930caaa1a283092aca81fdbc3fcf15c7eadb197
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jul 23 16:37:03 2020 +0200
patch 8.2.1280: Ex command error cannot contain an argument
Problem: Ex command error cannot contain an argument.
Solution: Add ex_errmsg() and translate earlier. Use e_trailing_arg where
possible.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 23 Jul 2020 16:45:03 +0200 |
parents | b1fac55cf8a3 |
children | 0deb6f96a5a3 |
comparison
equal
deleted
inserted
replaced
21458:5b12080761da | 21459:a422bd80b434 |
---|---|
1327 if (!eap->skip) | 1327 if (!eap->skip) |
1328 { | 1328 { |
1329 if (*end != NUL && !ends_excmd2(end, skipwhite(end + 1))) | 1329 if (*end != NUL && !ends_excmd2(end, skipwhite(end + 1))) |
1330 { | 1330 { |
1331 vim_free(g); | 1331 vim_free(g); |
1332 eap->errmsg = e_trailing; | 1332 eap->errmsg = ex_errmsg(e_trailing_arg, end); |
1333 return; | 1333 return; |
1334 } | 1334 } |
1335 if (*end != *p) | 1335 if (*end != *p) |
1336 { | 1336 { |
1337 vim_free(g); | 1337 vim_free(g); |