aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/snippets.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2012-06-22 15:22:25 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2012-06-22 15:22:25 -0400
commit73699db214f70901d642866f4233fbc99fa792a6 (patch)
tree9ee6e9d5bc02f377fadd4c99dd055527097768bb /modules/textadept/snippets.lua
parent4bca2f464a111f8561cc69d79b0a202be1da4d48 (diff)
downloadtextadept-73699db214f70901d642866f4233fbc99fa792a6.tar.gz
textadept-73699db214f70901d642866f4233fbc99fa792a6.zip
Resize most filteredlists to fit the ncurses screen.
Diffstat (limited to 'modules/textadept/snippets.lua')
-rw-r--r--modules/textadept/snippets.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/textadept/snippets.lua b/modules/textadept/snippets.lua
index 3674a079..5f08895e 100644
--- a/modules/textadept/snippets.lua
+++ b/modules/textadept/snippets.lua
@@ -235,7 +235,8 @@ function M._select()
end
local i = gui.filteredlist(_L['Select Snippet'],
{ _L['Trigger'], _L['Scope'], _L['Snippet Text'] },
- t, true, '--output-column', '2')
+ t, true, '--output-column', '2',
+ NCURSES and { '--width', gui.size[1] - 2 } or '')
if i then M._insert(t[(i + 1) * 3]) end
end