Fix error to close view when deleting a file

This commit is contained in:
Francesco Abbate 2022-01-13 16:38:20 +01:00
parent ae1890d29a
commit 2456452f65
1 changed files with 1 additions and 1 deletions

View File

@ -383,7 +383,7 @@ local commands = {
end
for i,docview in ipairs(core.get_views_referencing_doc(doc())) do
local node = core.root_view.root_node:get_node_for_view(docview)
node:close_view(core.root_view, docview)
node:close_view(core.root_view.root_node, docview)
end
os.remove(filename)
core.log("Removed \"%s\"", filename)