aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/snippets.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/snippets.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/snippets.lua')
-rw-r--r--modules/textadept/snippets.lua2
1 files changed, 1 insertions, 1 deletions
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