mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fileio: detach buffer when buffer was reloaded (like with :edit)
This commit is contained in:
parent
4383c0f952
commit
74089a9086
@ -15,6 +15,7 @@
|
|||||||
#include "nvim/ascii.h"
|
#include "nvim/ascii.h"
|
||||||
#include "nvim/fileio.h"
|
#include "nvim/fileio.h"
|
||||||
#include "nvim/buffer.h"
|
#include "nvim/buffer.h"
|
||||||
|
#include "nvim/buffer_updates.h"
|
||||||
#include "nvim/change.h"
|
#include "nvim/change.h"
|
||||||
#include "nvim/charset.h"
|
#include "nvim/charset.h"
|
||||||
#include "nvim/cursor.h"
|
#include "nvim/cursor.h"
|
||||||
@ -5082,6 +5083,7 @@ void buf_reload(buf_T *buf, int orig_mode)
|
|||||||
// Mark all undo states as changed.
|
// Mark all undo states as changed.
|
||||||
u_unchanged(curbuf);
|
u_unchanged(curbuf);
|
||||||
}
|
}
|
||||||
|
buf_updates_unregister_all(curbuf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
xfree(ea.cmd);
|
xfree(ea.cmd);
|
||||||
|
Loading…
Reference in New Issue
Block a user