forked from aniani/vim
updated for version 7.4.568
Problem: Giving an error for ":0wincmd w" is a problem for some plugins. Solution: Allow the zero in the range. (Marcin Szamotulski)
This commit is contained in:
@@ -4686,8 +4686,7 @@ invalid_range(eap)
|
||||
return (char_u *)_(e_invrange);
|
||||
break;
|
||||
case ADDR_WINDOWS:
|
||||
if (eap->line1 < 1
|
||||
|| eap->line2 > LAST_WIN_NR)
|
||||
if (eap->line2 > LAST_WIN_NR)
|
||||
return (char_u *)_(e_invrange);
|
||||
break;
|
||||
case ADDR_TABS:
|
||||
|
@@ -21,8 +21,8 @@ LocalRangeLines 2 5
|
||||
4argu d
|
||||
1argu a
|
||||
100b E16: Invalid range
|
||||
0close E16: Invalid range
|
||||
$close 4
|
||||
0close
|
||||
$close 3
|
||||
$+close E16: Invalid range
|
||||
$tabe 2
|
||||
$+tabe E16: Invalid range
|
||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
568,
|
||||
/**/
|
||||
567,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user