From 0896150b65e97f101b109e92feb7197d1c99848d Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 11 Dec 2009 15:43:50 -0500 Subject: Fix error message for session file not found; modules/textadept/session.lua --- modules/textadept/session.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/textadept/session.lua') diff --git a/modules/textadept/session.lua b/modules/textadept/session.lua index 95251c9c..3e7b48aa 100644 --- a/modules/textadept/session.lua +++ b/modules/textadept/session.lua @@ -31,6 +31,7 @@ function load(filename, only_pm) if not only_pm and not f then if not textadept.io.close_all() then return false end end + if not f then return false end local current_view, splits = 1, { [0] = {} } for line in f:lines() do if not only_pm then -- cgit v1.2.3