comparison src/ex_docmd.c @ 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 c626fd34b66f
children 078edc1821bf
comparison
equal deleted inserted replaced
25303:b3b7055c1552 25304:d39c12f97298
3689 eap->cmdidx = CMD_finally; 3689 eap->cmdidx = CMD_finally;
3690 3690
3691 #ifdef FEAT_EVAL 3691 #ifdef FEAT_EVAL
3692 if (eap->cmdidx < CMD_SIZE 3692 if (eap->cmdidx < CMD_SIZE
3693 && vim9 3693 && vim9
3694 && !IS_WHITE_OR_NUL(*p) && *p != '\n' && *p != '!' 3694 && !IS_WHITE_OR_NUL(*p) && *p != '\n' && *p != '!' && *p != '|'
3695 && (eap->cmdidx < 0 || 3695 && (eap->cmdidx < 0 ||
3696 (cmdnames[eap->cmdidx].cmd_argt & EX_NONWHITE_OK) == 0)) 3696 (cmdnames[eap->cmdidx].cmd_argt & EX_NONWHITE_OK) == 0))
3697 { 3697 {
3698 char_u *cmd = vim_strnsave(eap->cmd, p - eap->cmd); 3698 char_u *cmd = vim_strnsave(eap->cmd, p - eap->cmd);
3699 3699