This commit is contained in:
James McCoy
2017-01-02 07:18:18 -05:00
parent f7639e2490
commit af2b5abcd6
3 changed files with 9 additions and 8 deletions

View File

@@ -489,10 +489,11 @@ void free_all_mem(void)
{
buf_T *buf, *nextbuf;
/* When we cause a crash here it is caught and Vim tries to exit cleanly.
* Don't try freeing everything again. */
if (entered_free_all_mem)
// When we cause a crash here it is caught and Vim tries to exit cleanly.
// Don't try freeing everything again.
if (entered_free_all_mem) {
return;
}
entered_free_all_mem = true;
// Don't want to trigger autocommands from here on.