mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
1b55b127cb
commit
98b0a6ffb4
@ -6364,6 +6364,8 @@ do_exedit (
|
|||||||
? ECMD_ONE : eap->do_ecmd_lnum,
|
? ECMD_ONE : eap->do_ecmd_lnum,
|
||||||
(P_HID(curbuf) ? ECMD_HIDE : 0)
|
(P_HID(curbuf) ? ECMD_HIDE : 0)
|
||||||
+ (eap->forceit ? ECMD_FORCEIT : 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 )
|
+ (eap->cmdidx == CMD_badd ? ECMD_ADDBUF : 0 )
|
||||||
, old_curwin == NULL ? curwin : NULL) == FAIL) {
|
, old_curwin == NULL ? curwin : NULL) == FAIL) {
|
||||||
/* Editing the file failed. If the window was split, close it. */
|
/* Editing the file failed. If the window was split, close it. */
|
||||||
|
@ -246,7 +246,7 @@ static int included_patches[] = {
|
|||||||
//218,
|
//218,
|
||||||
//217,
|
//217,
|
||||||
//216,
|
//216,
|
||||||
//215,
|
215,
|
||||||
//214,
|
//214,
|
||||||
213,
|
213,
|
||||||
//212,
|
//212,
|
||||||
|
Loading…
Reference in New Issue
Block a user