From 59d557b245d94c285d2c9b74d893b11bccb2afc4 Mon Sep 17 00:00:00 2001 From: Kevin Gao Date: Fri, 28 Aug 2026 23:06:42 -0700 Subject: [PATCH] v1 --- src/internal/app/app.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/internal/app/app.go b/src/internal/app/app.go index 5128d4b..7077d26 100644 --- a/src/internal/app/app.go +++ b/src/internal/app/app.go @@ -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" @@ -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