comparison src/misc2.c @ 9165:062eb6d28b0c v7.4.1866

commit https://github.com/vim/vim/commit/a96732150cda2f242133228579b05437a39b8daa Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 1 22:21:06 2016 +0200 patch 7.4.1866 Problem: Invalid memory access when exiting with EXITFREE defined. (Dominique Pelle) Solution: Set "really_exiting" and skip error messages.
author Christian Brabandt <cb@256bit.org>
date Wed, 01 Jun 2016 22:30:07 +0200
parents b9c1a397a8a6
children 0ea97a753a2d
comparison
equal deleted inserted replaced
9164:fe7386df8418 9165:062eb6d28b0c
1041 /* When we cause a crash here it is caught and Vim tries to exit cleanly. 1041 /* When we cause a crash here it is caught and Vim tries to exit cleanly.
1042 * Don't try freeing everything again. */ 1042 * Don't try freeing everything again. */
1043 if (entered) 1043 if (entered)
1044 return; 1044 return;
1045 entered = TRUE; 1045 entered = TRUE;
1046
1047 /* Set this flag to indicate some errors can be ignored. */
1048 really_exiting = TRUE;
1046 1049
1047 # ifdef FEAT_AUTOCMD 1050 # ifdef FEAT_AUTOCMD
1048 /* Don't want to trigger autocommands from here on. */ 1051 /* Don't want to trigger autocommands from here on. */
1049 block_autocmds(); 1052 block_autocmds();
1050 # endif 1053 # endif