Fix error introduced with commit c0ad86d

This commit is contained in:
Francesco Abbate 2021-03-18 15:46:44 +01:00
parent 461266e97d
commit 04063ff47e
2 changed files with 2 additions and 6 deletions

View File

@ -122,9 +122,7 @@ command.add(nil, {
core.error("Cannot open folder %q", text)
return
end
if core.confirm_close_all() then
core.open_folder_project(text)
end
core.confirm_close_all(core.open_folder_project, text)
end, suggest_directory)
end,

View File

@ -12,9 +12,7 @@ local t = {
end,
["root:close-all"] = function()
if core.confirm_close_all() then
core.root_view:close_all_docviews()
end
core.confirm_close_all(core.root_view.close_all_docviews, core.root_view)
end,
["root:switch-to-previous-tab"] = function()