Do not save log views in session file

This commit is contained in:
Francesco Abbate 2021-06-04 14:42:08 +02:00
parent f682215b41
commit ab9960cddf
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@
local core = require "core"
local common = require "core.common"
local DocView = require "core.docview"
local LogView = require "core.logview"
local function workspace_files_for(project_dir)
@ -85,6 +86,7 @@ local function save_view(view)
text = not view.doc.filename and view.doc:get_text(1, 1, math.huge, math.huge)
}
end
if mt == LogView then return end
for name, mod in pairs(package.loaded) do
if mod == mt then
return {