aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/auevents.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-03-27 05:41:41 +0800
committerGitHub <noreply@github.com>2024-03-27 05:41:41 +0800
commit77458e613b67b9e7607ae781bcfbdc2ff6b1b2ef (patch)
tree7533d462b043d9f7a8f52e0c1669aabebc83eeb8 /src/nvim/auevents.lua
parentde87197fdc3aa8123a060fc3a780e087c8e258ac (diff)
downloadrneovim-77458e613b67b9e7607ae781bcfbdc2ff6b1b2ef.tar.gz
rneovim-77458e613b67b9e7607ae781bcfbdc2ff6b1b2ef.tar.bz2
rneovim-77458e613b67b9e7607ae781bcfbdc2ff6b1b2ef.zip
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 https://github.com/vim/vim/commit/e5f2280381250801a28dcff9823e6f94e7b163fc Co-authored-by: Colin Kennedy <colinvfx@gmail.com>
Diffstat (limited to 'src/nvim/auevents.lua')
-rw-r--r--src/nvim/auevents.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/auevents.lua b/src/nvim/auevents.lua
index b931907fe3..3946ffd960 100644
--- a/src/nvim/auevents.lua
+++ b/src/nvim/auevents.lua
@@ -88,6 +88,7 @@ return {
'SafeState', -- going to wait for a character
'SearchWrapped', -- after the search wrapped around
'SessionLoadPost', -- after loading a session file
+ 'SessionWritePost', -- after writing a session file
'ShellCmdPost', -- after ":!cmd"
'ShellFilterPost', -- after ":1,2!cmd", ":w !cmd", ":r !cmd".
'Signal', -- after nvim process received a signal