aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
Diffstat (limited to 'modules/textadept')
-rw-r--r--modules/textadept/menu.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua
index caaaa51e..76d0b5bf 100644
--- a/modules/textadept/menu.lua
+++ b/modules/textadept/menu.lua
@@ -458,7 +458,7 @@ local function proxy_menu(menu, update, menubar)
menu[k] = getmetatable(v) and getmetatable(v).menu or v
-- After adding or removing menus or menu items, update the menubar or
-- context menu. When updating a menu item's function, do nothing extra.
- if not type(v) == 'function' then update(menubar or menu) end
+ if type(v) ~= 'function' then update(menubar or menu) end
end,
__len = function() return #menu end,
menu = menu -- store existing menu for copying (e.g. m[#m + 1] = m[#m])