diff options
Diffstat (limited to 'modules/textadept/session.lua')
-rw-r--r-- | modules/textadept/session.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/session.lua b/modules/textadept/session.lua index dd737cb5..dea9e432 100644 --- a/modules/textadept/session.lua +++ b/modules/textadept/session.lua @@ -28,7 +28,7 @@ DEFAULT_SESSION = _USERHOME..'/session' -- @usage _m.textadept.session.load(filename) function load(filename, only_pm) local f = io.open(filename or DEFAULT_SESSION, 'rb') - if not f then return false end + if not f or not textadept.io.close_all() then return false end local current_view, splits = 1, { [0] = {} } for line in f:lines() do if not only_pm then |