vim-patch:7.4.215

Problem:  Inconsistency: ":sp foo" does not reload "foo", unless "foo"
          is the current buffer. (Liang Li)

Solution: Do not reload the current buffer on a split command.

https://code.google.com/p/vim/source/detail?r=f069a3a0f84451aa498c6c22d8f922d1e695e96d
This commit is contained in:
Marco Hinz 2014-04-13 18:23:57 +02:00 committed by Thiago de Arruda
parent 1b55b127cb
commit 98b0a6ffb4
2 changed files with 3 additions and 1 deletions

View File

@ -6364,6 +6364,8 @@ do_exedit (
? ECMD_ONE : eap->do_ecmd_lnum,
(P_HID(curbuf) ? ECMD_HIDE : 0)
+ (eap->forceit ? ECMD_FORCEIT : 0)
// After a split we can use an existing buffer.
+ (old_curwin != NULL ? ECMD_OLDBUF : 0)
+ (eap->cmdidx == CMD_badd ? ECMD_ADDBUF : 0 )
, old_curwin == NULL ? curwin : NULL) == FAIL) {
/* Editing the file failed. If the window was split, close it. */

View File

@ -246,7 +246,7 @@ static int included_patches[] = {
//218,
//217,
//216,
//215,
215,
//214,
213,
//212,