Fix error to close view when deleting a file
This commit is contained in:
parent
ae1890d29a
commit
2456452f65
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue