From d0b08f32f56c39df484ca10c6c928596548ad8f6 Mon Sep 17 00:00:00 2001 From: Felipe Oliveira Carvalho Date: Tue, 29 Mar 2016 01:56:21 -0300 Subject: Remove the mf_dont_release global after getting rid of maxmem[tot] --- src/nvim/memfile.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/nvim/memfile.c') diff --git a/src/nvim/memfile.c b/src/nvim/memfile.c index 7f40c5b10e..da5068d45c 100644 --- a/src/nvim/memfile.c +++ b/src/nvim/memfile.c @@ -195,12 +195,9 @@ void mf_close_file(buf_T *buf, bool getlines) if (getlines) { // get all blocks in memory by accessing all lines (clumsy!) - mf_dont_release = true; - for (linenr_T lnum = 1; lnum <= buf->b_ml.ml_line_count; ++lnum) { + for (linenr_T lnum = 1; lnum <= buf->b_ml.ml_line_count; lnum++) { (void)ml_get_buf(buf, lnum, false); } - mf_dont_release = false; - // TODO(elmart): should check if all blocks are really in core } if (close(mfp->mf_fd) < 0) { // close the file -- cgit