diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-23 17:07:30 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-23 17:07:30 +0200 |
commit | a72cfb80cd7aa589ad2a4fb8766ed6d30ea8ae33 (patch) | |
tree | 4e0ba772f84209f1d2364b6ed0c59db5f08530c7 /src/userfunc.c | |
parent | f7b398c6a9476a2004a42555b731ebf47b866408 (diff) | |
download | vim-git-a72cfb80cd7aa589ad2a4fb8766ed6d30ea8ae33.tar.gz |
patch 8.2.0624: Vim9: no check for space before #commentv8.2.0624
Problem: Vim9: no check for space before #comment.
Solution: Add space checks. Fix :throw with double quoted string.
Diffstat (limited to 'src/userfunc.c')
-rw-r--r-- | src/userfunc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/userfunc.c b/src/userfunc.c index dfda733a1..698c1b1e3 100644 --- a/src/userfunc.c +++ b/src/userfunc.c @@ -2373,7 +2373,7 @@ ex_function(exarg_T *eap) /* * ":function" without argument: list functions. */ - if (ends_excmd(*eap->arg)) + if (ends_excmd2(eap->cmd, eap->arg)) { if (!eap->skip) { @@ -3711,7 +3711,7 @@ ex_call(exarg_T *eap) if (!failed || eap->cstack->cs_trylevel > 0) { // Check for trailing illegal characters and a following command. - if (!ends_excmd(*arg)) + if (!ends_excmd2(eap->arg, arg)) { if (!failed) { |