From ce6dd6da7ca6fa9347851f917aafd2a7d71eaf74 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 9 Oct 2009 14:04:53 -0400 Subject: Don't clear cmdline files when loading pm session; modules/textadept/session.lua --- modules/textadept/session.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/textadept/session.lua') diff --git a/modules/textadept/session.lua b/modules/textadept/session.lua index dea9e432..95251c9c 100644 --- a/modules/textadept/session.lua +++ b/modules/textadept/session.lua @@ -28,7 +28,9 @@ 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 or not textadept.io.close_all() then return false end + if not only_pm and not f then + if not textadept.io.close_all() then return false end + end local current_view, splits = 1, { [0] = {} } for line in f:lines() do if not only_pm then -- cgit v1.2.3