Don't execute some autocommands when v:dying is 2 or more.

This commit is contained in:
Bram Moolenaar
2010-05-28 21:07:08 +02:00
parent 1d68952a3e
commit 0e1e25fb0a
5 changed files with 46 additions and 30 deletions
+3 -1
View File
@@ -1348,7 +1348,9 @@ v:dying Normally zero. When a deadly signal is caught it's set to
terminate normally. {only works on Unix}
Example: >
:au VimLeave * if v:dying | echo "\nAAAAaaaarrrggghhhh!!!\n" | endif
<
< Note: if another deadly signal is caught when v:dying is one,
VimLeave autocommands will not be executed.
*v:errmsg* *errmsg-variable*
v:errmsg Last given error message. It's allowed to set this variable.
Example: >