Pairs -> IPairs
This commit is contained in:
parent
851dc07408
commit
40c68ffcc6
|
@ -26,7 +26,7 @@ local t = {
|
||||||
|
|
||||||
["root:close-all-others"] = function()
|
["root:close-all-others"] = function()
|
||||||
local active_doc, docs = core.active_view and core.active_view.doc, {}
|
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)
|
core.confirm_close_docs(docs, core.root_view.close_all_docviews, core.root_view, true)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue