aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/memfile.c
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2016-03-29 01:56:21 -0300
committerFelipe Oliveira Carvalho <felipekde@gmail.com>2017-04-11 00:33:09 +0200
commitd0b08f32f56c39df484ca10c6c928596548ad8f6 (patch)
treed6707c56cb55228e79e5221fc059e8ec133cb01c /src/nvim/memfile.c
parent9ea111d1af6abcac361eece478fb7709e5264b82 (diff)
downloadrneovim-d0b08f32f56c39df484ca10c6c928596548ad8f6.tar.gz
rneovim-d0b08f32f56c39df484ca10c6c928596548ad8f6.tar.bz2
rneovim-d0b08f32f56c39df484ca10c6c928596548ad8f6.zip
Remove the mf_dont_release global after getting rid of maxmem[tot]
Diffstat (limited to 'src/nvim/memfile.c')
-rw-r--r--src/nvim/memfile.c5
1 files changed, 1 insertions, 4 deletions
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