diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/.gui.luadoc | 4 | ||||
-rw-r--r-- | core/gui.lua | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/core/.gui.luadoc b/core/.gui.luadoc index 04869e70..eecc6c1d 100644 --- a/core/.gui.luadoc +++ b/core/.gui.luadoc @@ -79,6 +79,8 @@ function switch_buffer() end --- -- Displays a CocoaDialog of a specified type with the given string arguments. --- Each argument is like a string in Lua's 'arg' table. +-- Each argument is like a string in Lua's 'arg' table. Tables of strings are +-- allowed as arguments and are expanded in place. This is useful for +-- filteredlist dialogs with many items. -- @return string CocoaDialog result. function dialog(kind, ...) end diff --git a/core/gui.lua b/core/gui.lua index 9f49be19..3baba198 100644 --- a/core/gui.lua +++ b/core/gui.lua @@ -66,7 +66,7 @@ function gui.switch_buffer() '--button2', 'gtk-cancel', '--no-newline', '--columns', 'Name', 'File', - '--items', unpack(items)) + '--items', items) local i = tonumber(out:match('%-?%d+$')) if i and i >= 0 then view:goto_buffer(i + 1, true) end end |