diff src/userfunc.c @ 33193:256febd1cbf0 v9.0.1876

patch 9.0.1876: Vim9: parsing commands with newlines wrong Commit: https://github.com/vim/vim/commit/00cb247465856eaa546c520b65cf0ccc753ee1cd Author: Christian Brabandt <cb@256bit.org> Date: Tue Sep 5 20:46:25 2023 +0200 patch 9.0.1876: Vim9: parsing commands with newlines wrong Problem: Vim9: parsing commands with newlines wrong Solution: Accept a '\n' for parsing lists and command arguments closes: #13015 closes: #13020 Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Tue, 05 Sep 2023 21:00:03 +0200
parents 1d18c7fe609f
children 499ba27ba0f6
line wrap: on
line diff
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -1879,7 +1879,7 @@ get_func_arguments(
 	    argp = skipwhite(argp);
 	if (*argp != ',')
 	    break;
-	if (vim9script && !IS_WHITE_OR_NUL(argp[1]))
+	if (vim9script && !IS_WHITE_NL_OR_NUL(argp[1]))
 	{
 	    if (evaluate)
 		semsg(_(e_white_space_required_after_str_str), ",", argp);