diff options
author | Christian Brabandt <cb@256bit.org> | 2023-09-05 20:46:25 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-09-05 20:53:46 +0200 |
commit | 00cb247465856eaa546c520b65cf0ccc753ee1cd (patch) | |
tree | e6925577888a5fa96c3fb5ae4b68dd8c02bc0d1d /src/ex_docmd.c | |
parent | 28a60f898d5cd7023596b0e96a081b1573edc807 (diff) |
patch 9.0.1876: Vim9: parsing commands with newlines wrongv9.0.1876
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>
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 10d979d493..d4b972a2ef 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -3954,7 +3954,7 @@ find_ex_command( #ifdef FEAT_EVAL if (eap->cmdidx < CMD_SIZE && vim9 - && !IS_WHITE_OR_NUL(*p) && *p != '\n' && *p != '!' && *p != '|' + && !IS_WHITE_NL_OR_NUL(*p) && *p != '!' && *p != '|' && (eap->cmdidx < 0 || (cmdnames[eap->cmdidx].cmd_argt & EX_NONWHITE_OK) == 0)) { |