From fbc722360864470cfe5fc2afafd148e874f40c71 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 11 Oct 2010 15:11:02 -0400 Subject: gui.dialog() can take tables of strings as arguments. --- modules/textadept/snapopen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/textadept/snapopen.lua') 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 -- cgit v1.2.3