216
213
void mf_close_file(buf_T *buf, bool getlines)
218
215
memfile_T *mfp = buf->b_ml.ml_mfp;
223
221
// get all blocks in memory by accessing all lines (clumsy!)
226
224
(void)ml_get_buf(buf, lnum, false);
228
227
// TODO(elmart): should check if all blocks are really in core
235
235
if (mfp->mf_fname != NULL) {
236
236
os_remove((char *)mfp->mf_fname); // delete the swap file