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)
def Test_echowindow_cmd()
var local = 'local'
echowindow 'something' local # comment
+
+ # with modifier
+ unsilent echowin 'loud'
+
# output goes in message window
popup_clear()
enddef
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 811,
/**/
810,
/**/
;
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;