From 7e88330753edcf2df034e2240c2e77e1006d2e64 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 9 Sep 2013 21:48:15 -0400 Subject: Moved buffer IO functions into the `io` module. Menus and key bindings do not need `events.INITIALIZED`. --- modules/textadept/session.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/textadept/session.lua') 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 -- cgit v1.2.3