From d8c61a6a451bb70efaee7b83e753de904b277ba4 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 7 May 2010 15:00:39 -0400 Subject: Save buffer before compiling or running; modules/textadept/run.lua --- modules/textadept/run.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/textadept/run.lua') diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua index 2935a56a..e03665cb 100644 --- a/modules/textadept/run.lua +++ b/modules/textadept/run.lua @@ -58,6 +58,7 @@ compile_command = {} -- @see compile_command function compile() if not buffer.filename then return end + buffer:save() local action = compile_command[buffer.filename:match('[^.]+$')] if action then execute(type(action) == 'function' and action() or action) end end @@ -77,6 +78,7 @@ run_command = {} -- @see run_command function run() if not buffer.filename then return end + buffer:save() local action = run_command[buffer.filename:match('[^.]+$')] if action then execute(type(action) == 'function' and action() or action) end end -- cgit v1.2.3