diff options
-rw-r--r-- | modules/textadept/menu.lua | 1 | ||||
-rw-r--r-- | src/textadept.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua index 234ad62e..f29919fb 100644 --- a/modules/textadept/menu.lua +++ b/modules/textadept/menu.lua @@ -305,7 +305,6 @@ end function M.set_menubar(menubar) key_shortcuts = {} for key, f in pairs(keys) do key_shortcuts[get_id(f)] = key end - if NCURSES then return end -- only wanted to populate key_shortcuts menu_actions = {} local _menubar = {} for i = 1, #menubar do diff --git a/src/textadept.c b/src/textadept.c index 618dedce..c4e6fbe9 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -895,7 +895,7 @@ static int lgui_menu(lua_State *L) { #if GTK l_pushmenu(L, -1, G_CALLBACK(m_clicked), FALSE); #elif NCURSES - luaL_error(L, "not implemented in this environment"); + lua_pushnil(L); #endif return 1; } |