From de42a039debf9329cde8333ea8fbb33f6a9c5ff0 Mon Sep 17 00:00:00 2001 From: Nathan Zeng Date: Sun, 5 Jul 2026 02:52:49 -0700 Subject: [PATCH] docs(restart): use 'sessionoptions' to adjust :restart behavior #40583 (cherry picked from commit 656b4d9c34676c70eefc602c6f82cb1cc955c4b4) --- runtime/doc/gui.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/runtime/doc/gui.txt b/runtime/doc/gui.txt index 6fbcb1a532..0af0a07495 100644 --- a/runtime/doc/gui.txt +++ b/runtime/doc/gui.txt @@ -99,8 +99,9 @@ Restart Nvim • Only works if the UI and server are on the same system. • Windows limitation: when +cmd is executed, |v:servername| refers to a temporary address. - • If no UI handles the "restart" event, this command will lead - to a dangling server process. + • If no UI handles the "restart" event, this leaves a dangling + process. + • To adjust what `:restart` restores, set 'sessionoptions'. ------------------------------------------------------------------------------ Connect UI to a different server