diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-01-14 21:23:38 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-01-14 21:23:38 +0000 |
commit | c32840f2674d4c6b06cfac8ec32791b5451bf31c (patch) | |
tree | a94f91721c326e599a2a5199762ebed4dbfe2a6e /src/memline.c | |
parent | 04dbce064ed4282854348bd4fb5a806a6136bd04 (diff) | |
download | vim-git-c32840f2674d4c6b06cfac8ec32791b5451bf31c.tar.gz |
updated for version 7.0181v7.0181
Diffstat (limited to 'src/memline.c')
-rw-r--r-- | src/memline.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/memline.c b/src/memline.c index 9abf15523..c87a955ad 100644 --- a/src/memline.c +++ b/src/memline.c @@ -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); } |