patch 8.2.0624: Vim9: no check for space before #comment
Problem: Vim9: no check for space before #comment.
Solution: Add space checks. Fix :throw with double quoted string.
diff --git a/src/userfunc.c b/src/userfunc.c
index dfda733..698c1b1 100644
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -2373,7 +2373,7 @@
/*
* ":function" without argument: list functions.
*/
- if (ends_excmd(*eap->arg))
+ if (ends_excmd2(eap->cmd, eap->arg))
{
if (!eap->skip)
{
@@ -3711,7 +3711,7 @@
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)
{