Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"gioui.org/io/event"
"gioui.org/io/key"
"gioui.org/io/pointer"
"gioui.org/io/system"
"gioui.org/layout"
"gioui.org/op"
"gioui.org/op/clip"
Expand Down Expand Up @@ -454,6 +455,10 @@ func (a *App) pumpRedraw() {
a.win.Invalidate()
}
}
// Nvim exited (e.g. :q, :qa, :wq) — close the Gio window so the
// event loop in Run returns. Without this, the window stays open
// and unresponsive after Nvim is gone.
a.win.Perform(system.ActionClose)
}

// quit asks Nvim to exit (honoring unsaved-changes prompts) and waits a
Expand Down
Loading