diff src/userfunc.c @ 20138:d0a9766167ab v8.2.0624

patch 8.2.0624: Vim9: no check for space before #comment Commit: https://github.com/vim/vim/commit/a72cfb80cd7aa589ad2a4fb8766ed6d30ea8ae33 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 23 17:07:30 2020 +0200 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.
author Bram Moolenaar <Bram@vim.org>
date Thu, 23 Apr 2020 17:15:04 +0200
parents 75589416d02d
children fe8d0a4344df
line wrap: on
line diff
--- 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)
 	    {