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/run.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/textadept/run.lua') diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua index 917cb7a5..67850924 100644 --- a/modules/textadept/run.lua +++ b/modules/textadept/run.lua @@ -50,7 +50,7 @@ local preferred_view local function command(cmd_table, compiling) if not buffer.filename then return end buffer:annotation_clear_all() - buffer:save() + io.save_file() local command = cmd_table[buffer.filename:match('[^.]+$')] if not command then return end if type(command) == 'function' then command = command() end -- cgit v1.2.3