aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
Diffstat (limited to 'modules/textadept')
-rw-r--r--modules/textadept/session.lua1
1 files changed, 1 insertions, 0 deletions
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