From b75d134f6a725b2d51257f0df2e6863014b3e5b8 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 26 Mar 2020 17:38:51 -0400 Subject: Removed extra sets of () around some buffer function calls. The Scintilla iface was changed to not return a second string length value. --- modules/textadept/command_entry.lua | 2 +- modules/textadept/run.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/textadept') 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) -- cgit v1.2.3