diff options
author | 2018-12-08 23:50:22 -0500 | |
---|---|---|
committer | 2018-12-08 23:50:22 -0500 | |
commit | dc5187f9ec70a1ca92b0e81857bb5e042d1250fb (patch) | |
tree | daa638964e8c74d304633d92d392a9da45ca4474 /modules | |
parent | 6da7e32d62311d166a3be08ce0bbfeab2b544681 (diff) | |
download | textadept-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.lua | 2 |
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. |