0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.3189: Vim9: error when using "try|"

Problem:    Vim9: error when using "try|".
Solution:   Allow for "|" right after a command.
This commit is contained in:
Bram Moolenaar
2021-07-20 19:18:44 +02:00
parent 83494b4ac6
commit 9fa5dabedc
3 changed files with 6 additions and 1 deletions

View File

@@ -3691,7 +3691,7 @@ find_ex_command(
#ifdef FEAT_EVAL
if (eap->cmdidx < CMD_SIZE
&& vim9
&& !IS_WHITE_OR_NUL(*p) && *p != '\n' && *p != '!'
&& !IS_WHITE_OR_NUL(*p) && *p != '\n' && *p != '!' && *p != '|'
&& (eap->cmdidx < 0 ||
(cmdnames[eap->cmdidx].cmd_argt & EX_NONWHITE_OK) == 0))
{