Mercurial > vim
diff 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 |
line wrap: on
line diff
--- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -2712,8 +2712,9 @@ get_cmd_count(char_u *line, exarg_T *eap ; if (!isdigit(*p)) { - // the command must be following - if (p < eap->cmd) + // The command or modifiers must be following. Assume a lower case + // character means there is a modifier. + if (p < eap->cmd && !vim_islower(*p)) { emsg(_(e_invalid_range)); return -1;