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