comparison src/vim9compile.c @ 23477:95db03521b01 v8.2.2281

patch 8.2.2281: Vim9: compiled "wincmd" cannot be followed by bar Commit: https://github.com/vim/vim/commit/a11919fa44fb43e947ef7871f31096a79429ec8a Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 2 19:44:56 2021 +0100 patch 8.2.2281: Vim9: compiled "wincmd" cannot be followed by bar Problem: Vim9: compiled "wincmd" cannot be followed by bar. Solution: Check for bar after "wincmd". (closes https://github.com/vim/vim/issues/7599)
author Bram Moolenaar <Bram@vim.org>
date Sat, 02 Jan 2021 20:00:03 +0100
parents ad83c0ff34c0
children ac5ead954dcd
comparison
equal deleted inserted replaced
23476:b1591bf3ee33 23477:95db03521b01
7326 { 7326 {
7327 eap->argt = argt; 7327 eap->argt = argt;
7328 separate_nextcmd(eap); 7328 separate_nextcmd(eap);
7329 if (eap->nextcmd != NULL) 7329 if (eap->nextcmd != NULL)
7330 nextcmd = eap->nextcmd; 7330 nextcmd = eap->nextcmd;
7331 }
7332 else if (eap->cmdidx == CMD_wincmd)
7333 {
7334 p = eap->arg;
7335 if (*p != NUL)
7336 ++p;
7337 if (*p == 'g' || *p == Ctrl_G)
7338 ++p;
7339 p = skipwhite(p);
7340 if (*p == '|')
7341 {
7342 *p = NUL;
7343 nextcmd = p + 1;
7344 }
7331 } 7345 }
7332 } 7346 }
7333 7347
7334 if (eap->cmdidx == CMD_syntax && STRNCMP(eap->arg, "include ", 8) == 0) 7348 if (eap->cmdidx == CMD_syntax && STRNCMP(eap->arg, "include ", 8) == 0)
7335 { 7349 {