mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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)
This commit is contained in:
@@ -2032,6 +2032,10 @@ enddef
|
|||||||
def Test_echowindow_cmd()
|
def Test_echowindow_cmd()
|
||||||
var local = 'local'
|
var local = 'local'
|
||||||
echowindow 'something' local # comment
|
echowindow 'something' local # comment
|
||||||
|
|
||||||
|
# with modifier
|
||||||
|
unsilent echowin 'loud'
|
||||||
|
|
||||||
# output goes in message window
|
# output goes in message window
|
||||||
popup_clear()
|
popup_clear()
|
||||||
enddef
|
enddef
|
||||||
|
@@ -695,6 +695,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
811,
|
||||||
/**/
|
/**/
|
||||||
810,
|
810,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -2712,8 +2712,9 @@ get_cmd_count(char_u *line, exarg_T *eap)
|
|||||||
;
|
;
|
||||||
if (!isdigit(*p))
|
if (!isdigit(*p))
|
||||||
{
|
{
|
||||||
// the command must be following
|
// The command or modifiers must be following. Assume a lower case
|
||||||
if (p < eap->cmd)
|
// character means there is a modifier.
|
||||||
|
if (p < eap->cmd && !vim_islower(*p))
|
||||||
{
|
{
|
||||||
emsg(_(e_invalid_range));
|
emsg(_(e_invalid_range));
|
||||||
return -1;
|
return -1;
|
||||||
|
Reference in New Issue
Block a user