aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2015-02-09 17:56:18 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2015-02-09 17:56:18 -0500
commit8ccbe89fb35a9e61a6ef48bb53e52dbbe8297f1b (patch)
tree2e2c12ec55b50b5f59b37bb9ce013702df98632c /modules/textadept
parent84c54c176163711aaca0300426be4994fcc0d469 (diff)
downloadtextadept-8ccbe89fb35a9e61a6ef48bb53e52dbbe8297f1b.tar.gz
textadept-8ccbe89fb35a9e61a6ef48bb53e52dbbe8297f1b.zip
Return values from abbreviated functions; modules/textadept/command_entry.lua
Diffstat (limited to 'modules/textadept')
-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 14684f43..820ad751 100644
--- a/modules/textadept/command_entry.lua
+++ b/modules/textadept/command_entry.lua
@@ -108,7 +108,7 @@ local env = setmetatable({}, {
__index = function(t, k)
local f = buffer[k]
if f and type(f) == 'function' then
- f = function(...) buffer[k](buffer, ...) end
+ f = function(...) return buffer[k](buffer, ...) end
elseif f == nil then
f = view[k] or ui[k] or _G[k]
end