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:
@@ -3068,7 +3068,7 @@ nobackup:
|
||||
*/
|
||||
if (reset_changed && !newfile && overwriting
|
||||
&& !(exiting && backup != NULL)) {
|
||||
ml_preserve(buf, FALSE);
|
||||
ml_preserve(buf, false, !!p_fs);
|
||||
if (got_int) {
|
||||
SET_ERRMSG(_(e_interr));
|
||||
goto restore_backup;
|
||||
|
Reference in New Issue
Block a user