We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc84120 commit f2cfd55Copy full SHA for f2cfd55
lua/nougat/store/init.lua
@@ -62,10 +62,10 @@ local function on_tab_closed()
62
active_tabid[tabid] = true
63
end
64
65
- for _, storage in pairs(registry.tab) do
66
- for tabid in pairs(storage) do
67
- if not active_tabid[tabid] then
68
- storage[tabid] = nil
+ for _, store in pairs(registry.tab) do
+ for tabid in pairs(store) do
+ if type(tabid) == "number" and not active_tabid[tabid] then
+ store[tabid] = nil
69
70
71
@@ -170,7 +170,7 @@ function mod._clear(target_type, target_name)
170
---@cast store NougatStore
171
store:clear()
172
else
173
- for id in ipairs(store) do
+ for id in pairs(store) do
174
if type(id) == "number" then
175
store[id] = nil
176
0 commit comments