Blame SOURCES/7.4.568

22c937
To: vim_dev@googlegroups.com
22c937
Subject: Patch 7.4.568
22c937
Fcc: outbox
22c937
From: Bram Moolenaar <Bram@moolenaar.net>
22c937
Mime-Version: 1.0
22c937
Content-Type: text/plain; charset=UTF-8
22c937
Content-Transfer-Encoding: 8bit
22c937
------------
22c937
22c937
Patch 7.4.568
22c937
Problem:    Giving an error for ":0wincmd w" is a problem for some plugins.
22c937
Solution:   Allow the zero in the range. (Marcin Szamotulski)
22c937
Files:	    src/ex_docmd.c, src/testdir/test_command_count.ok
22c937
22c937
22c937
*** ../vim-7.4.567/src/ex_docmd.c	2015-01-07 15:57:13.145559792 +0100
22c937
--- src/ex_docmd.c	2015-01-14 11:14:26.690308629 +0100
22c937
***************
22c937
*** 4686,4693 ****
22c937
  		    return (char_u *)_(e_invrange);
22c937
  		break;
22c937
  	    case ADDR_WINDOWS:
22c937
! 		if (eap->line1 < 1
22c937
! 			|| eap->line2 > LAST_WIN_NR)
22c937
  		    return (char_u *)_(e_invrange);
22c937
  		break;
22c937
  	    case ADDR_TABS:
22c937
--- 4686,4692 ----
22c937
  		    return (char_u *)_(e_invrange);
22c937
  		break;
22c937
  	    case ADDR_WINDOWS:
22c937
! 		if (eap->line2 > LAST_WIN_NR)
22c937
  		    return (char_u *)_(e_invrange);
22c937
  		break;
22c937
  	    case ADDR_TABS:
22c937
*** ../vim-7.4.567/src/testdir/test_command_count.ok	2015-01-07 16:52:53.506792420 +0100
22c937
--- src/testdir/test_command_count.ok	2015-01-14 11:22:19.405222287 +0100
22c937
***************
22c937
*** 21,28 ****
22c937
  4argu d
22c937
  1argu a
22c937
  100b E16: Invalid range
22c937
! 0close E16: Invalid range
22c937
! $close 4
22c937
  $+close E16: Invalid range
22c937
  $tabe 2
22c937
  $+tabe E16: Invalid range
22c937
--- 21,28 ----
22c937
  4argu d
22c937
  1argu a
22c937
  100b E16: Invalid range
22c937
! 0close 
22c937
! $close 3
22c937
  $+close E16: Invalid range
22c937
  $tabe 2
22c937
  $+tabe E16: Invalid range
22c937
*** ../vim-7.4.567/src/version.c	2015-01-07 19:04:25.299934570 +0100
22c937
--- src/version.c	2015-01-14 11:15:38.117540026 +0100
22c937
***************
22c937
*** 743,744 ****
22c937
--- 743,746 ----
22c937
  {   /* Add new patch number below this line */
22c937
+ /**/
22c937
+     568,
22c937
  /**/
22c937
22c937
-- 
22c937
ASCII stupid question, get a stupid ANSI.
22c937
22c937
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
22c937
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
22c937
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
22c937
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///