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 +- modules/textadept/snippets.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') 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 diff --git a/modules/textadept/snippets.lua b/modules/textadept/snippets.lua index 9e002348..9e1cc9dd 100644 --- a/modules/textadept/snippets.lua +++ b/modules/textadept/snippets.lua @@ -636,7 +636,7 @@ function M.select() end local button, i = ui.dialogs.filteredlist{ title = _L['Select Snippet'], columns = {_L['Trigger'], _L['Snippet Text']}, - items = items, width = CURSES and ui.size[1] - 2 or nil + items = items } if button == 1 and i then M.insert(items[i * 2]) end end -- cgit v1.2.3