mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 17:36:29 +00:00
vim-patch:9.1.0207: No autocommand when writing session file (#28048)
Problem: No autocommand when writing session file
Solution: Add SessionWritePost autocommand
(Colin Kennedy)
fixes: vim/vim#14242
closes: vim/vim#14288
e5f2280381
Co-authored-by: Colin Kennedy <colinvfx@gmail.com>
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "nvim/arglist.h"
|
||||
#include "nvim/arglist_defs.h"
|
||||
#include "nvim/ascii_defs.h"
|
||||
#include "nvim/autocmd.h"
|
||||
#include "nvim/buffer.h"
|
||||
#include "nvim/buffer_defs.h"
|
||||
#include "nvim/eval.h"
|
||||
@@ -1092,6 +1093,8 @@ void ex_mkrc(exarg_T *eap)
|
||||
}
|
||||
|
||||
xfree(viewFile);
|
||||
|
||||
apply_autocmds(EVENT_SESSIONWRITEPOST, NULL, NULL, false, curbuf);
|
||||
}
|
||||
|
||||
/// @return the name of the view file for the current buffer.
|
||||
|
Reference in New Issue
Block a user