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