aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/run.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2015-03-12 16:52:40 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2015-03-12 16:52:40 -0400
commit4ca29592357e698959441392a9e7b9b38dcf38c0 (patch)
tree0bdca0c14a3057b54242f360c70abc28fc1ff16b /modules/textadept/run.lua
parent75a66036a42d117decbd29eb78bd55283b6972e1 (diff)
downloadtextadept-4ca29592357e698959441392a9e7b9b38dcf38c0.tar.gz
textadept-4ca29592357e698959441392a9e7b9b38dcf38c0.zip
Lua code cleanup.
Diffstat (limited to 'modules/textadept/run.lua')
-rw-r--r--modules/textadept/run.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua
index dbf0301f..e816ff39 100644
--- a/modules/textadept/run.lua
+++ b/modules/textadept/run.lua
@@ -103,11 +103,10 @@ local function command(commands, event)
end
preferred_view = view
- local events_emit = events.emit
local function emit_output(output, focus)
ui.SILENT_PRINT = not focus
for line in output:gmatch('[^\r\n]+') do
- events_emit(event, data, line:iconv('UTF-8', _CHARSET))
+ events.emit(event, data, line:iconv('UTF-8', _CHARSET))
end
ui.SILENT_PRINT = false
end