Skip to content

fix(sessions): prevent error on session cleanup#1995

Merged
CKolkey merged 1 commit into
NeogitOrg:masterfrom
igorlfs:session-followup
Jul 25, 2026
Merged

fix(sessions): prevent error on session cleanup#1995
CKolkey merged 1 commit into
NeogitOrg:masterfrom
igorlfs:session-followup

Conversation

@igorlfs

@igorlfs igorlfs commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

An oversight. When multiple tabs with neogit buffers are shown, it could raise an error:

Error in UIEnter Autocommands for "*":
E5108: Lua: [string "vim/_core/editor"]:490: UIEnter Autocommands for "*"..script nvim_exec2() called at UIEnter Autocommands for "*":0[1]../tmp/nvim.dev/restart_session_cHeRn8[82]..SessionLoadPost Autocommands for "*": Vim(append):E814: Cannot close window, only autocmd window would remain

Solution: vim.schedule ftw

@CKolkey
CKolkey merged commit 57c9f8e into NeogitOrg:master Jul 25, 2026
2 of 6 checks passed
@CKolkey

CKolkey commented Jul 25, 2026

Copy link
Copy Markdown
Member

All good, thanks for following up:)

@igorlfs
igorlfs deleted the session-followup branch July 25, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants