From c8e73a92164fa17597985dd4f2d63ec2d91badd8 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 16 Mar 2020 11:43:33 -0400 Subject: Use a default width for `ui.dialogs.filteredlist` dialogs. Experience has shown a vast majority of filteredlist dialogs need to be wide. Use a standard width that needs to be overridden rather than remembered. --- modules/textadept/menu.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/textadept/menu.lua') diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua index df800e02..02ae948b 100644 --- a/modules/textadept/menu.lua +++ b/modules/textadept/menu.lua @@ -565,7 +565,7 @@ function M.select_command() build_command_tables(getmetatable(M.menubar).menu) local button, i = ui.dialogs.filteredlist{ title = _L['Run Command'], columns = {_L['Command'], _L['Key Binding']}, - items = items, width = CURSES and ui.size[1] - 2 or nil + items = items } if button == 1 and i then events.emit(events.MENU_CLICKED, i) end end -- cgit v1.2.3