mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 09:48:19 +00:00
IO: let 'fsync' option control more cases
Vim has the 'swapsync' option which we removed in 62d137ce09
.
Instead let 'fsync' control swapfile-fsync.
These cases ALWAYS force fsync (ignoring 'fsync' option):
- Idle (CursorHold).
- Exit caused by deadly signal.
- SIGPWR signal.
- Explicit :preserve command.
This commit is contained in:
@@ -6547,18 +6547,14 @@ void alist_slash_adjust(void)
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
* ":preserve".
|
||||
*/
|
||||
/// ":preserve".
|
||||
static void ex_preserve(exarg_T *eap)
|
||||
{
|
||||
curbuf->b_flags |= BF_PRESERVED;
|
||||
ml_preserve(curbuf, TRUE);
|
||||
ml_preserve(curbuf, true, true);
|
||||
}
|
||||
|
||||
/*
|
||||
* ":recover".
|
||||
*/
|
||||
/// ":recover".
|
||||
static void ex_recover(exarg_T *eap)
|
||||
{
|
||||
/* Set recoverymode right away to avoid the ATTENTION prompt. */
|
||||
|
Reference in New Issue
Block a user