Blame SOURCES/7.4.215

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