From 6169e7d42c434ef6a01b199e0f2729a25b389e43 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 14 Jun 2010 18:21:57 -0400 Subject: Fixes from Robert Gieseke. --- modules/textadept/session.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/textadept/session.lua') diff --git a/modules/textadept/session.lua b/modules/textadept/session.lua index 22f19c11..ce347d24 100644 --- a/modules/textadept/session.lua +++ b/modules/textadept/session.lua @@ -31,7 +31,7 @@ local lfs = require 'lfs' -- @usage _m.textadept.session.load(filename) function load(filename) local not_found = {} - local f = io.open_file(filename or DEFAULT_SESSION, 'rb') + local f = io.open(filename or DEFAULT_SESSION, 'rb') if not f then if not io.close_all() then return false end end @@ -160,7 +160,7 @@ function save(filename) session[#session + 1] = ("size: %d %d"):format(size[1], size[2]) -- Write the session. local f = - io.open_file(filename or _SESSIONFILE or DEFAULT_SESSION, 'wb') + io.open(filename or _SESSIONFILE or DEFAULT_SESSION, 'wb') if f then f:write(table.concat(session, '\n')) f:close() -- cgit v1.2.3