summaryrefslogtreecommitdiff
path: root/src/memfile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-02-07 02:41:57 +0000
committerBram Moolenaar <Bram@vim.org>2007-02-07 02:41:57 +0000
commit47b8b15b5f7f62d65e6ef55f5042453e2735055d (patch)
tree6db0328d36b0a3375cb87489a52c7188f1ba0282 /src/memfile.c
parent48b66fb5a7197c79c05de133dddc8563cc942d9b (diff)
downloadvim-git-47b8b15b5f7f62d65e6ef55f5042453e2735055d.tar.gz
updated for version 7.0-192v7.0.192
Diffstat (limited to 'src/memfile.c')
-rw-r--r--src/memfile.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/memfile.c b/src/memfile.c
index eac0c0877..d5caf3b9a 100644
--- a/src/memfile.c
+++ b/src/memfile.c
@@ -76,7 +76,6 @@ extern int dos2; /* this is in os_amiga.c */
#define MEMFILE_PAGE_SIZE 4096 /* default page size */
static long_u total_mem_used = 0; /* total memory used for memfiles */
-static int dont_release = FALSE; /* don't release blocks */
static void mf_ins_hash __ARGS((memfile_T *, bhdr_T *));
static void mf_rem_hash __ARGS((memfile_T *, bhdr_T *));
@@ -279,10 +278,10 @@ mf_close_file(buf, getlines)
if (getlines)
{
/* get all blocks in memory by accessing all lines (clumsy!) */
- dont_release = TRUE;
+ mf_dont_release = TRUE;
for (lnum = 1; lnum <= buf->b_ml.ml_line_count; ++lnum)
(void)ml_get_buf(buf, lnum, FALSE);
- dont_release = FALSE;
+ mf_dont_release = FALSE;
/* TODO: should check if all blocks are really in core */
}
@@ -830,7 +829,7 @@ mf_release(mfp, page_count)
buf_T *buf;
/* don't release while in mf_close_file() */
- if (dont_release)
+ if (mf_dont_release)
return NULL;
/*