stevearc / resession.nvim

A replacement for mksession with a better API
MIT License
220 stars 15 forks source link

fix: floating window lead causes no problems #36

Closed zemzelett closed 1 year ago

zemzelett commented 1 year ago

This PR is to be primarily understood as a suggestion for solving issue #37.

It aims at making loading a session in presence of a floating windows more robust by additionally closing the last window left over from the current session after splitting a fresh one off of it in _init.lua_s close_everything's function. This gives a clean slate to load the desired session from.

stevearc commented 1 year ago

Decided to go with 31938d818f11924da712918cb066937c557ee741 as the fix