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. --- core/gui.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/gui.lua') diff --git a/core/gui.lua b/core/gui.lua index 778f3539..cb9aa1d9 100644 --- a/core/gui.lua +++ b/core/gui.lua @@ -108,7 +108,8 @@ function gui.switch_buffer() items[#items + 1] = (buffer.dirty and '*' or '')..basename items[#items + 1] = filename end - local i = gui.filteredlist(_L['Switch Buffers'], columns, items, true) + local i = gui.filteredlist(_L['Switch Buffers'], columns, items, true, + NCURSES and { '--width', gui.size[1] - 2 } or '') if i then view:goto_buffer(i + 1) end end -- cgit v1.2.3