diff options
author | 2013-04-03 16:56:14 -0400 | |
---|---|---|
committer | 2013-04-03 16:56:14 -0400 | |
commit | 679e188ec027978b37eb36a5f2d52bc2cf04ef77 (patch) | |
tree | 61da33e31c8f6f02fcc5fd53e406368635d5df43 /modules/textadept/menu.lua | |
parent | 00153ab1c0f7307a8589c7d0cc0a3908cb7f0c34 (diff) | |
download | textadept-679e188ec027978b37eb36a5f2d52bc2cf04ef77.tar.gz textadept-679e188ec027978b37eb36a5f2d52bc2cf04ef77.zip |
Textadept should support multiple curses platforms; remove ncurses references.
Requires Scintilla r4436 and Scinterm r45.
Diffstat (limited to 'modules/textadept/menu.lua')
-rw-r--r-- | modules/textadept/menu.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua index b1ffd0c2..f4784b5d 100644 --- a/modules/textadept/menu.lua +++ b/modules/textadept/menu.lua @@ -330,7 +330,7 @@ function M.set_contextmenu(menu) contextmenu_actions = {} gui.context_menu = gui.menu(read_menu_table(menu, true)) end -if not NCURSES then M.set_contextmenu(M.context_menu) end +if not CURSES then M.set_contextmenu(M.context_menu) end local columns = {_L['Command'], _L['Key Command']} --- @@ -338,7 +338,7 @@ local columns = {_L['Command'], _L['Key Command']} -- @name select_command function M.select_command() local i = gui.filteredlist(_L['Run Command'], columns, items, true, - NCURSES and {'--width', gui.size[1] - 2} or '') + CURSES and {'--width', gui.size[1] - 2} or '') if i then keys.run_command(commands[i + 1], type(commands[i + 1])) end end @@ -353,7 +353,7 @@ events_connect(events.MENU_CLICKED, function(menu_id) keys.run_command(action, type(action)) end) -if not NCURSES then +if not CURSES then -- Set a language-specific context menu or the default one. local function set_language_contextmenu() local lang = _G.buffer:get_lexer(true) |