aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/run.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2016-04-05 20:47:44 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2016-04-05 20:47:44 -0400
commitdd67ffe17bc8b1a472124a72783f557c61473fef (patch)
treee4c63115435e8944e10ea611f6696daf7384b26f /modules/textadept/run.lua
parent8eeef0af7f63b466c1ecb1cec0a7024bda5f5fae (diff)
downloadtextadept-dd67ffe17bc8b1a472124a72783f557c61473fef.tar.gz
textadept-dd67ffe17bc8b1a472124a72783f557c61473fef.zip
Use more accurate variable names in `events.CHAR_ADDED` events.
Diffstat (limited to 'modules/textadept/run.lua')
-rw-r--r--modules/textadept/run.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua
index 66a57ba4..c907f754 100644
--- a/modules/textadept/run.lua
+++ b/modules/textadept/run.lua
@@ -260,9 +260,9 @@ events.connect(events.BUILD_OUTPUT, print_output)
function M.stop() if M.proc then M.proc:kill() end end
-- Send line as input to process stdin on return.
-events.connect(events.CHAR_ADDED, function(char)
+events.connect(events.CHAR_ADDED, function(byte)
local proc = M.proc
- if char == 10 and proc and proc.status and proc:status() == 'running' and
+ if byte == 10 and proc and proc.status and proc:status() == 'running' and
buffer._type == _L['[Message Buffer]'] then
local line_num = buffer:line_from_position(buffer.current_pos) - 1
proc:write((buffer:get_line(line_num)))