mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00:00
vim-patch:8.1.1872: when Vim exits because of a signal, VimLeave is not triggered
Problem: When Vim exits because of a signal, VimLeave is not triggered.
(Daniel Hahler)
Solution: Unblock autocommands when triggering VimLeave. (closes vim/vim#4818)
c7226684c8
This commit is contained in:
@@ -1717,7 +1717,8 @@ void unblock_autocmds(void)
|
||||
}
|
||||
}
|
||||
|
||||
static inline bool is_autocmd_blocked(void)
|
||||
bool is_autocmd_blocked(void)
|
||||
FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT
|
||||
{
|
||||
return autocmd_blocked != 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user