mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
fix(picker): save toggles for resume. Closes #1085
This commit is contained in:
parent
be781f9fcb
commit
e390713ac6
1 changed files with 3 additions and 0 deletions
|
@ -658,6 +658,9 @@ function M:close()
|
|||
self:hist_record(true)
|
||||
self.closed = true
|
||||
|
||||
for toggle in pairs(self.opts.toggles) do
|
||||
self.init_opts[toggle] = self.opts[toggle]
|
||||
end
|
||||
M.last = {
|
||||
opts = self.init_opts or {},
|
||||
selected = self:selected({ fallback = false }),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue