aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/menu.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2020-03-16 11:43:33 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2020-03-16 11:43:33 -0400
commitc8e73a92164fa17597985dd4f2d63ec2d91badd8 (patch)
treeefc2518471d2cca1e27d08511d3a9ff7b1b9a0c8 /modules/textadept/menu.lua
parenta79590f80c11d9b1aa363d9fd3f96d86bcde74f1 (diff)
downloadtextadept-c8e73a92164fa17597985dd4f2d63ec2d91badd8.tar.gz
textadept-c8e73a92164fa17597985dd4f2d63ec2d91badd8.zip
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.
Diffstat (limited to 'modules/textadept/menu.lua')
-rw-r--r--modules/textadept/menu.lua2
1 files changed, 1 insertions, 1 deletions
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