comparison src/vim9compile.c @ 30954:3e8aed429cc5 v9.0.0811

patch 9.0.0811: error if :echowin is preceded by a command modifier Commit: https://github.com/vim/vim/commit/2435adf8eb13736e2b3d012bb70df9ef960ffd60 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Oct 21 12:05:46 2022 +0100 patch 9.0.0811: error if :echowin is preceded by a command modifier Problem: Error if :echowin is preceded by a command modifier. Solution: Do not give an error for range when there is a modifier. (closes #11414)
author Bram Moolenaar <Bram@vim.org>
date Fri, 21 Oct 2022 13:15:03 +0200
parents 90a257beac7a
children 4bde058d0be7
comparison
equal deleted inserted replaced
30953:e0b47ccd75a4 30954:3e8aed429cc5
2710 // skip over colons and white space 2710 // skip over colons and white space
2711 for (p = line; *p == ':' || VIM_ISWHITE(*p); ++p) 2711 for (p = line; *p == ':' || VIM_ISWHITE(*p); ++p)
2712 ; 2712 ;
2713 if (!isdigit(*p)) 2713 if (!isdigit(*p))
2714 { 2714 {
2715 // the command must be following 2715 // The command or modifiers must be following. Assume a lower case
2716 if (p < eap->cmd) 2716 // character means there is a modifier.
2717 if (p < eap->cmd && !vim_islower(*p))
2717 { 2718 {
2718 emsg(_(e_invalid_range)); 2719 emsg(_(e_invalid_range));
2719 return -1; 2720 return -1;
2720 } 2721 }
2721 return 0; 2722 return 0;