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