From 73699db214f70901d642866f4233fbc99fa792a6 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 22 Jun 2012 15:22:25 -0400 Subject: Resize most filteredlists to fit the ncurses screen. --- modules/textadept/snapopen.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/textadept/snapopen.lua') diff --git a/modules/textadept/snapopen.lua b/modules/textadept/snapopen.lua index 67da1ff1..dd379d48 100644 --- a/modules/textadept/snapopen.lua +++ b/modules/textadept/snapopen.lua @@ -157,8 +157,9 @@ function M.open(utf8_paths, filter, exclude_PATHS, exclude_FILTER, depth) M.MAX), '--button1', _L['_OK']) end + local width = NCURSES and { '--width', gui.size[1] - 2 } or '' local utf8_filenames = gui.filteredlist(_L['Open'], _L['File'], list, false, - '--select-multiple') or '' + '--select-multiple', width) or '' for filename in utf8_filenames:gmatch('[^\n]+') do io.open_file(filename) end end -- cgit v1.2.3