WIP: fix(session): clear buftype on VimLeavePre so mksession saves canola URLs #254
No reviewers
Labels
No labels
autorelease: pending
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
upstream/digest
upstream/pr
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/canola.nvim!254
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/session-restore-canola"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
mksessiontreatsbuftype='acwrite'buffers as blank windows whenblankis excluded fromsessionoptions, causing canola windows to be silently omitted from saved sessions.Solution
Clear
buftypeon all canola buffers inVimLeavePreso the session writer sees them as regular file buffers and saves theircanola://URLs. On restore,BufReadCmdre-initializes them normally. Mid-session:mksessioncalls are not yet covered — blocked by neovim/neovim#22814.Canola-branch counterpart of #195. Closes #149.
Pull request closed