0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.2070: can't get the exit value in VimLeave(Pre) autocommands

Problem:    Can't get the exit value in VimLeave or VimLeavePre autocommands.
Solution:   Add v:exiting like in Neovim. (Yegappan Lakshmanan, closes #7395)
This commit is contained in:
Bram Moolenaar
2020-11-30 17:42:10 +01:00
parent 23515b4ef7
commit f0068c5154
7 changed files with 49 additions and 2 deletions

View File

@@ -1996,7 +1996,8 @@ typedef int sock_T;
#define VV_ECHOSPACE 93
#define VV_ARGV 94
#define VV_COLLATE 95
#define VV_LEN 96 // number of v: vars
#define VV_EXITING 96
#define VV_LEN 97 // number of v: vars
// used for v_number in VAR_BOOL and VAR_SPECIAL
#define VVAL_FALSE 0L // VAR_BOOL