commit | a96732150cda2f242133228579b05437a39b8daa | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Jun 01 22:21:06 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Jun 01 22:21:06 2016 +0200 |
tree | d47ae09c2dfccdb4331471cecbc3b35b43aab0a4 | |
parent | 9ad73239c26467832a5b553b2a4b99d7ffbaa25e [diff] [blame] |
patch 7.4.1866 Problem: Invalid memory access when exiting with EXITFREE defined. (Dominique Pelle) Solution: Set "really_exiting" and skip error messages.
diff --git a/src/misc2.c b/src/misc2.c index b4e9479..f7b1de3 100644 --- a/src/misc2.c +++ b/src/misc2.c
@@ -1044,6 +1044,9 @@ return; entered = TRUE; + /* Set this flag to indicate some errors can be ignored. */ + really_exiting = TRUE; + # ifdef FEAT_AUTOCMD /* Don't want to trigger autocommands from here on. */ block_autocmds();