aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2016-05-19 23:03:25 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2016-05-19 23:03:25 -0400
commitfd9215ce1251717d7adaf8361801749a4c7dc179 (patch)
treea1af2b28409ad6842076b6afbfdbbeabb64da886
parent7df30315fd8645da38e51f076a1aec33bbf22568 (diff)
Fixed stack overflow when accessing nil keys; modules/textadept/menu.lua
-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 e8f7983b..440df9af 100644
--- a/modules/textadept/menu.lua
+++ b/modules/textadept/menu.lua
@@ -567,7 +567,7 @@ function M.select_command()
end
return setmetatable(M, {
- __index = function(_, k) return proxies[k] or M[k] end,
+ __index = function(_, k) return proxies[k] or rawget(M, k) end,
__newindex = function(_, k, v)
if k == 'menubar' then
set_menubar(v)