Skip to content

Commit dcc5984

Browse files
committed
fix: don't close loaded scopes window when a scope is reset
1 parent a56477f commit dcc5984

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lua/grapple/container_actions.lua

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ end
1616
---@param opts grapple.action.container_options
1717
function ContainerActions.reset(opts)
1818
require("grapple").reset({ id = opts.id })
19+
opts.window:render()
1920
end
2021

2122
function ContainerActions.open_scopes()

lua/grapple/settings.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ local DEFAULT_SETTINGS = {
317317
window:map("n", "x", function()
318318
local entry = window:current_entry()
319319
local id = entry.data.id
320-
window:perform_close(ContainerActions.reset, { id = id })
320+
window:perform_retain(ContainerActions.reset, { id = id })
321321
end, { desc = "Reset scope" })
322322

323323
-- Navigate "up" to scopes

0 commit comments

Comments
 (0)