aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2020-03-26 17:38:51 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2020-03-26 17:38:51 -0400
commitb75d134f6a725b2d51257f0df2e6863014b3e5b8 (patch)
tree7bcd557963a80185c038f5d3694c12eab753ab25 /modules/textadept
parent940732342827ebe0d3bb98740419f621f9c77391 (diff)
downloadtextadept-b75d134f6a725b2d51257f0df2e6863014b3e5b8.tar.gz
textadept-b75d134f6a725b2d51257f0df2e6863014b3e5b8.zip
Removed extra sets of () around some buffer function calls.
The Scintilla iface was changed to not return a second string length value.
Diffstat (limited to 'modules/textadept')
-rw-r--r--modules/textadept/command_entry.lua2
-rw-r--r--modules/textadept/run.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/textadept/command_entry.lua b/modules/textadept/command_entry.lua
index 540c2510..7929a6b8 100644
--- a/modules/textadept/command_entry.lua
+++ b/modules/textadept/command_entry.lua
@@ -207,7 +207,7 @@ function M.run(f, keys, lexer, height)
local mode_history = history[history.mode]
mode_history[#mode_history + 1] = M:get_text()
mode_history.pos = #mode_history + 1
- f((M:get_text()))
+ f(M:get_text())
end
end
if not getmetatable(keys) then setmetatable(keys, M.editing_keys) end
diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua
index 6c9bef23..c130abc1 100644
--- a/modules/textadept/run.lua
+++ b/modules/textadept/run.lua
@@ -325,7 +325,7 @@ events.connect(events.CHAR_ADDED, function(code)
if code == string.byte('\n') and proc 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)))
+ proc:write(buffer:get_line(line_num))
end
end)