Mercurial > vim
diff src/vim.h @ 13442:94e638936d3e v8.0.1595
patch 8.0.1595: no autocommand triggered before exiting
commit https://github.com/vim/vim/commit/12a96de430779b88795fac87a2be666d9f661d1e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 11 14:44:18 2018 +0100
patch 8.0.1595: no autocommand triggered before exiting
Problem: No autocommand triggered before exiting.
Solution: Add the ExitPre autocommand event.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 11 Mar 2018 14:45:05 +0100 |
parents | 22b13b27d9fe |
children | 9f06f7aca74c |
line wrap: on
line diff
--- a/src/vim.h +++ b/src/vim.h @@ -1277,6 +1277,7 @@ enum auto_event EVENT_COLORSCHEME, /* after loading a colorscheme */ EVENT_COMPLETEDONE, /* after finishing insert complete */ EVENT_DIRCHANGED, /* after changing directory as a result of user cmd */ + EVENT_EXITPRE, /* before exiting */ EVENT_FILEAPPENDPOST, /* after appending to a file */ EVENT_FILEAPPENDPRE, /* before appending to a file */ EVENT_FILEAPPENDCMD, /* append to a file using command */