From c32840f2674d4c6b06cfac8ec32791b5451bf31c Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 14 Jan 2006 21:23:38 +0000 Subject: updated for version 7.0181 --- src/memline.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/memline.c') 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); } -- cgit v1.2.1