WIP: fix(session): clear buftype on VimLeavePre so mksession saves canola URLs #254

Closed
barrettruth wants to merge 1 commit from fix/session-restore-canola into canola
barrettruth commented 2026-03-21 19:39:41 +00:00

Problem

mksession treats buftype='acwrite' buffers as blank windows when blank is excluded from sessionoptions, causing canola windows to be silently omitted from saved sessions.

Solution

Clear buftype on all canola buffers in VimLeavePre so the session writer sees them as regular file buffers and saves their canola:// URLs. On restore, BufReadCmd re-initializes them normally. Mid-session :mksession calls are not yet covered — blocked by neovim/neovim#22814.

Canola-branch counterpart of #195. Closes #149.

## Problem `mksession` treats `buftype='acwrite'` buffers as blank windows when `blank` is excluded from `sessionoptions`, causing canola windows to be silently omitted from saved sessions. ## Solution Clear `buftype` on all canola buffers in `VimLeavePre` so the session writer sees them as regular file buffers and saves their `canola://` URLs. On restore, `BufReadCmd` re-initializes them normally. Mid-session `:mksession` calls are not yet covered — blocked by neovim/neovim#22814. Canola-branch counterpart of #195. Closes #149.
barrettruth closed this pull request 2026-05-02 02:09:08 +00:00

Pull request closed

Sign in to join this conversation.
No description provided.