073263
To: vim_dev@googlegroups.com
073263
Subject: Patch 7.4.215
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.215
073263
Problem:    Inconsistency: ":sp foo" does not reload "foo", unless "foo" is
073263
	    the current buffer. (Liang Li)
073263
Solution:   Do not reload the current buffer on a split command.
073263
Files:	    runtime/doc/windows.txt, src/ex_docmd.c
073263
073263
073263
*** ../vim-7.4.214/runtime/doc/windows.txt	2013-08-10 13:25:08.000000000 +0200
073263
--- runtime/doc/windows.txt	2014-03-25 12:34:51.989767212 +0100
073263
***************
073263
*** 132,144 ****
073263
  CTRL-W s						*CTRL-W_s*
073263
  CTRL-W S						*CTRL-W_S*
073263
  CTRL-W CTRL-S						*CTRL-W_CTRL-S*
073263
! :[N]sp[lit] [++opt] [+cmd]				*:sp* *:split*
073263
  		Split current window in two.  The result is two viewports on
073263
! 		the same file.  Make new window N high (default is to use half
073263
! 		the height of the current window).  Reduces the current window
073263
! 		height to create room (and others, if the 'equalalways' option
073263
! 		is set, 'eadirection' isn't "hor", and one of them is higher
073263
! 		than the current or the new window).
073263
  		Note: CTRL-S does not work on all terminals and might block
073263
  		further input, use CTRL-Q to get going again.
073263
  		Also see |++opt| and |+cmd|.
073263
--- 132,151 ----
073263
  CTRL-W s						*CTRL-W_s*
073263
  CTRL-W S						*CTRL-W_S*
073263
  CTRL-W CTRL-S						*CTRL-W_CTRL-S*
073263
! :[N]sp[lit] [++opt] [+cmd] [file]			*:sp* *:split*
073263
  		Split current window in two.  The result is two viewports on
073263
! 		the same file.
073263
! 		
073263
! 		Make the new window N high (default is to use half the height
073263
! 		of the current window).  Reduces the current window height to
073263
! 		create room (and others, if the 'equalalways' option is set,
073263
! 		'eadirection' isn't "hor", and one of them is higher than the
073263
! 		current or the new window).
073263
! 
073263
! 		If [file] is given it will be edited in the new window.  If it
073263
! 		is not loaded in any buffer, it will be read.  Else the new
073263
! 		window will use the already loaded buffer.
073263
! 
073263
  		Note: CTRL-S does not work on all terminals and might block
073263
  		further input, use CTRL-Q to get going again.
073263
  		Also see |++opt| and |+cmd|.
073263
*** ../vim-7.4.214/src/ex_docmd.c	2014-03-23 16:03:56.167311626 +0100
073263
--- src/ex_docmd.c	2014-03-25 12:57:13.737787771 +0100
073263
***************
073263
*** 7938,7943 ****
073263
--- 7938,7945 ----
073263
  					       ? ECMD_ONE : eap->do_ecmd_lnum,
073263
  		    (P_HID(curbuf) ? ECMD_HIDE : 0)
073263
  		    + (eap->forceit ? ECMD_FORCEIT : 0)
073263
+ 		      /* after a split we can use an existing buffer */
073263
+ 		    + (old_curwin != NULL ? ECMD_OLDBUF : 0)
073263
  #ifdef FEAT_LISTCMDS
073263
  		    + (eap->cmdidx == CMD_badd ? ECMD_ADDBUF : 0 )
073263
  #endif
073263
*** ../vim-7.4.214/src/version.c	2014-03-24 19:43:56.604837795 +0100
073263
--- src/version.c	2014-03-25 12:30:13.137762939 +0100
073263
***************
073263
*** 736,737 ****
073263
--- 736,739 ----
073263
  {   /* Add new patch number below this line */
073263
+ /**/
073263
+     215,
073263
  /**/
073263
073263
-- 
073263
BLACK KNIGHT: The Black Knight always triumphs. Have at you!
073263
   ARTHUR takes his last leg off.  The BLACK KNIGHT's body lands upright.
073263
BLACK KNIGHT: All right, we'll call it a draw.
073263
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
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    ///