summaryrefslogtreecommitdiff
path: root/src/misc2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-07-28 22:36:45 +0000
committerBram Moolenaar <Bram@vim.org>2005-07-28 22:36:45 +0000
commit661b1820956743fd67f957f8dbbc45a93fe38dc9 (patch)
tree5c1a259895d6a8af91b166c0c103706eb8233096 /src/misc2.c
parentcfc7d63267e68168b5fb068d8ee1e763ed4aa6a0 (diff)
downloadvim-661b1820956743fd67f957f8dbbc45a93fe38dc9.zip
updated for version 7.0118
Diffstat (limited to 'src/misc2.c')
-rw-r--r--src/misc2.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/misc2.c b/src/misc2.c
index db6642ee9..d677b1b4c 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -870,10 +870,13 @@ lalloc(size, message)
if (releasing)
break;
releasing = TRUE;
- try_again = mf_release_all();
+
+ clear_sb_text(); /* free any scrollback text */
+ try_again = mf_release_all(); /* release as many blocks as possible */
#ifdef FEAT_EVAL
- try_again |= garbage_collect();
+ try_again |= garbage_collect(); /* cleanup recursive lists/dicts */
#endif
+
releasing = FALSE;
if (!try_again)
break;