aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/session.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-09-09 21:48:15 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-09-09 21:48:15 -0400
commit7e88330753edcf2df034e2240c2e77e1006d2e64 (patch)
tree63b7afd8d28129922e7eb5c1f64f7af9dd58813f /modules/textadept/session.lua
parent393e320d1f8170ff76fb18fca34b5dbdf36dd31f (diff)
downloadtextadept-7e88330753edcf2df034e2240c2e77e1006d2e64.tar.gz
textadept-7e88330753edcf2df034e2240c2e77e1006d2e64.zip
Moved buffer IO functions into the `io` module.
Menus and key bindings do not need `events.INITIALIZED`.
Diffstat (limited to 'modules/textadept/session.lua')
-rw-r--r--modules/textadept/session.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/session.lua b/modules/textadept/session.lua
index 8ae408fd..b44a777c 100644
--- a/modules/textadept/session.lua
+++ b/modules/textadept/session.lua
@@ -50,7 +50,7 @@ function M.load(filename)
if filename == '' then return end
local not_found = {}
local f = io.open(filename, 'rb')
- if not f then io.close_all() return false end
+ if not f then io.close_all_buffers() return false end
local current_view, splits = 1, {[0] = {}}
local lfs_attributes = lfs.attributes
for line in f:lines() do