diff options
author | 2012-06-22 14:54:44 -0400 | |
---|---|---|
committer | 2012-06-22 14:54:44 -0400 | |
commit | 4bca2f464a111f8561cc69d79b0a202be1da4d48 (patch) | |
tree | 944a0497d45fe61dc62dbb030be5efea98dcbd24 /modules/textadept/menu.lua | |
parent | f9cb3d98dc4b1246da7b71b2f5892667c0d64699 (diff) | |
download | textadept-4bca2f464a111f8561cc69d79b0a202be1da4d48.tar.gz textadept-4bca2f464a111f8561cc69d79b0a202be1da4d48.zip |
Updated key commands for ncurses.
Diffstat (limited to 'modules/textadept/menu.lua')
-rw-r--r-- | modules/textadept/menu.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua index 1bdcbd41..675428b4 100644 --- a/modules/textadept/menu.lua +++ b/modules/textadept/menu.lua @@ -325,7 +325,11 @@ local columns = { _L['Command'], _L['Key Command'] } -- Prompts the user with a filteredlist to run menu commands. -- @name select_command function M.select_command() - local i = gui.filteredlist(_L['Run Command'], columns, items, true) + local i = gui.filteredlist(_L['Run Command'], columns, items, true, + NCURSES and { + '--width', gui.size[1] - 2, + '--height', gui.size[2] - 2, + } or '') if i then keys.run_command(commands[i + 1], type(commands[i + 1])) end end |