aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2018-12-08 23:50:22 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2018-12-08 23:50:22 -0500
commitdc5187f9ec70a1ca92b0e81857bb5e042d1250fb (patch)
treedaa638964e8c74d304633d92d392a9da45ca4474 /modules
parent6da7e32d62311d166a3be08ce0bbfeab2b544681 (diff)
downloadtextadept-dc5187f9ec70a1ca92b0e81857bb5e042d1250fb.tar.gz
textadept-dc5187f9ec70a1ca92b0e81857bb5e042d1250fb.zip
Only pass command entry text to finish mode function.
Silently passing second length parameter can cause subtle bugs in functions that accept more than one parameter.
Diffstat (limited to 'modules')
-rw-r--r--modules/textadept/command_entry.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/command_entry.lua b/modules/textadept/command_entry.lua
index 214241a4..f5fef2f6 100644
--- a/modules/textadept/command_entry.lua
+++ b/modules/textadept/command_entry.lua
@@ -103,7 +103,7 @@ end
function M.finish_mode(f)
if M:auto_c_active() then return false end -- allow Enter to autocomplete
M.enter_mode(nil)
- if f then f(M:get_text()) end
+ if f then f((M:get_text())) end
end
-- Environment for abbreviated Lua commands.