Skip to content

Commit

Permalink
fix: potential stack overflow during setup
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Dec 15, 2022
1 parent a1dd2f8 commit 6bda7fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/resession/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ local hooks = setmetatable({

local function do_setup()
if pending_config then
require("resession.config").setup(pending_config)
local conf = pending_config
pending_config = nil
require("resession.config").setup(conf)
has_setup = true
end
end
Expand Down

0 comments on commit 6bda7fd

Please sign in to comment.