vim-patch:9.2.0061: Not possible to know when a session will be loaded (#38071)

Problem:  Not possible to know when a session will be loaded.
Solution: Add the SessionLoadPre autocommand (Colin Kennedy).

fixes:  vim/vim#19084
closes: vim/vim#19306

1c0d468d72

Co-authored-by: Colin Kennedy <colinvfx@gmail.com>
This commit is contained in:
zeertzjq
2026-02-26 21:30:44 +08:00
committed by GitHub
parent 34b3bd1ac5
commit 7852993f49
9 changed files with 78 additions and 2 deletions

View File

@@ -176,6 +176,7 @@ error('Cannot require a meta file')
--- |'SafeState'
--- |'SearchWrapped'
--- |'SessionLoadPost'
--- |'SessionLoadPre'
--- |'SessionWritePost'
--- |'ShellCmdPost'
--- |'ShellFilterPost'

View File

@@ -2231,6 +2231,7 @@ vim.go.ei = vim.go.eventignore
--- `RemoteReply`,
--- `SafeState`,
--- `SessionLoadPost`,
--- `SessionLoadPre`,
--- `SessionWritePost`,
--- `ShellCmdPost`,
--- `Signal`,