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