diff options
author | 2012-01-01 12:32:38 -0500 | |
---|---|---|
committer | 2012-01-01 12:32:38 -0500 | |
commit | 3d6f697add4606a1a84f9d77993d8f05daf4f8fe (patch) | |
tree | f98059344b097e3843908277206ebc69f2b226f7 /modules/textadept/run.lua | |
parent | bd55d676f133a5b38ca53c33bf599d66dfe1fc87 (diff) | |
download | textadept-3d6f697add4606a1a84f9d77993d8f05daf4f8fe.tar.gz textadept-3d6f697add4606a1a84f9d77993d8f05daf4f8fe.zip |
Code cleanup.
Diffstat (limited to 'modules/textadept/run.lua')
-rw-r--r-- | modules/textadept/run.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua index 08033c70..5ef8a3f8 100644 --- a/modules/textadept/run.lua +++ b/modules/textadept/run.lua @@ -29,7 +29,7 @@ module('_m.textadept.run')]] -- * `output`: The output from the command. -- Events. -local events = events +local events, events_connect = events, events.connect events.COMPILE_OUTPUT = 'compile_output' events.RUN_OUTPUT = 'run_output' @@ -90,7 +90,7 @@ function M.compile() events.emit(events.COMPILE_OUTPUT, buffer:get_lexer(), command(M.compile_command)) end -events.connect(events.COMPILE_OUTPUT, +events_connect(events.COMPILE_OUTPUT, function(lexer, output) gui.print(output) end) --- @@ -110,7 +110,7 @@ M.run_command = {} function M.run() events.emit(events.RUN_OUTPUT, buffer:get_lexer(), command(M.run_command)) end -events.connect(events.RUN_OUTPUT, +events_connect(events.RUN_OUTPUT, function(lexer, output) gui.print(output) end) --- @@ -160,6 +160,6 @@ function goto_error(pos, line_num) end end end -events.connect(events.DOUBLE_CLICK, goto_error) +events_connect(events.DOUBLE_CLICK, goto_error) return M |