Mercurial > vim
changeset 25304:d39c12f97298 v8.2.3189
patch 8.2.3189: Vim9: error when using "try|"
Commit: https://github.com/vim/vim/commit/9fa5dabedc4ed5af85773413e91c2fdbe4cb9f0a
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jul 20 19:18:44 2021 +0200
patch 8.2.3189: Vim9: error when using "try|"
Problem: Vim9: error when using "try|".
Solution: Allow for "|" right after a command.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 20 Jul 2021 19:30:03 +0200 |
parents | b3b7055c1552 |
children | 4032f1628500 |
files | src/ex_docmd.c src/testdir/test_vim9_script.vim src/version.c |
diffstat | 3 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -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)) {