aboutsummaryrefslogtreecommitdiff
path: root/core/ext/menu.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-01-08 15:54:26 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2009-01-08 15:54:26 -0500
commit0194a626fcb17bcb037341fc6c2f586f54d26035 (patch)
tree9b54a08a6f30ce597b751190c113b934a3bb2b6d /core/ext/menu.lua
parent1267b118ffebf604639ca7a56660a1b4b69a2b85 (diff)
downloadtextadept-0194a626fcb17bcb037341fc6c2f586f54d26035.tar.gz
textadept-0194a626fcb17bcb037341fc6c2f586f54d26035.zip
Reformatted all C and Lua code to a single standard for each language.
Diffstat (limited to 'core/ext/menu.lua')
-rw-r--r--core/ext/menu.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/core/ext/menu.lua b/core/ext/menu.lua
index 44a70e2d..e7f57d5a 100644
--- a/core/ext/menu.lua
+++ b/core/ext/menu.lua
@@ -415,7 +415,10 @@ local m_mlines = _m.textadept.mlines
local m_bookmarks = _m.textadept.bookmarks
local m_macros = _m.textadept.macros
-local function pm_activate(text) t.pm.entry_text = text t.pm.activate() end
+local function pm_activate(text)
+ t.pm.entry_text = text
+ t.pm.activate()
+end
local function toggle_setting(setting)
local state = buffer[setting]
if type(state) == 'boolean' then
@@ -579,10 +582,10 @@ t.events.add_handler('menu_clicked',
end
end
if f and args then
- local ret, retval = pcall( f, unpack(args) )
+ local ret, retval = pcall(f, unpack(args))
if not ret then textadept.events.error(retval) end -- error
else
- error( l.MENU_UNKNOWN_COMMAND..tostring(func) )
+ error(l.MENU_UNKNOWN_COMMAND..tostring(func))
end
end
end)