Pairs -> IPairs

This commit is contained in:
Adam Harrison 2021-08-10 23:18:30 -04:00
parent 851dc07408
commit 40c68ffcc6
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ local t = {
["root:close-all-others"] = function()
local active_doc, docs = core.active_view and core.active_view.doc, {}
for k, v in pairs(core.docs) do if v ~= active_doc then table.insert(docs, v) end end
for i, v in ipairs(core.docs) do if v ~= active_doc then table.insert(docs, v) end end
core.confirm_close_docs(docs, core.root_view.close_all_docviews, core.root_view, true)
end,