From d672b9d9607510136abba15354f0451a8f0f1aea Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 12 Oct 2012 13:15:53 -0400 Subject: Fixed ncurses bug in command selection introduced by r1256. --- modules/textadept/menu.lua | 1 - src/textadept.c | 2 +- 2 files changed, 1 insertion(+), 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; } -- cgit v1.2.3