0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.0181

This commit is contained in:
Bram Moolenaar
2006-01-14 21:23:38 +00:00
parent 04dbce064e
commit c32840f267
5 changed files with 47 additions and 3 deletions

View File

@@ -563,7 +563,13 @@ ml_open_file(buf)
/* Flush block zero, so others can read it */
if (mf_sync(mfp, MFS_ZERO) == OK)
{
/* Mark all blocks that should be in the swapfile as dirty.
* Needed for when the 'swapfile' option was reset, so that
* the swap file was deleted, and then on again. */
mf_set_dirty(mfp);
break;
}
/* Writing block 0 failed: close the file and try another dir */
mf_close_file(buf, FALSE);
}