aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2010-10-11 15:11:02 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2010-10-11 15:11:02 -0400
commitfbc722360864470cfe5fc2afafd148e874f40c71 (patch)
treedc383dc98bcfa5872fa18a7e204e75531932c975 /modules/textadept
parentb235c7d1e3d738d839915ba922b25acea03e182a (diff)
downloadtextadept-fbc722360864470cfe5fc2afafd148e874f40c71.tar.gz
textadept-fbc722360864470cfe5fc2afafd148e874f40c71.zip
gui.dialog() can take tables of strings as arguments.
Diffstat (limited to 'modules/textadept')
-rw-r--r--modules/textadept/mime_types.lua2
-rw-r--r--modules/textadept/snapopen.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/textadept/mime_types.lua b/modules/textadept/mime_types.lua
index 3bed5a8a..5d19228c 100644
--- a/modules/textadept/mime_types.lua
+++ b/modules/textadept/mime_types.lua
@@ -290,7 +290,7 @@ function select_lexer()
'--no-newline',
'--string-output',
'--columns', 'Name',
- '--items', unpack(lexers))
+ '--items', lexers)
local response, lexer = out:match('([^\n]+)\n([^\n]+)$')
if response and response ~= 'gtk-cancel' then buffer:set_lexer(lexer) end
end
diff --git a/modules/textadept/snapopen.lua b/modules/textadept/snapopen.lua
index d1f7f3d4..dfc80db3 100644
--- a/modules/textadept/snapopen.lua
+++ b/modules/textadept/snapopen.lua
@@ -115,7 +115,7 @@ function open(paths, filter, exclusive)
'--button2', 'gtk-cancel',
'--no-newline',
'--columns', 'File',
- '--items', unpack(list))
+ '--items', list)
local response, index = out:match('^(%d+)[\r\n]+(%d+)')
if response == '1' then io.open_file(list[tonumber(index) + 1]) end
end