aboutsummaryrefslogtreecommitdiff
path: root/core/ui.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/ui.lua')
-rw-r--r--core/ui.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/ui.lua b/core/ui.lua
index dd0fd522..fa2d5d51 100644
--- a/core/ui.lua
+++ b/core/ui.lua
@@ -105,9 +105,13 @@ ui.dialogs = setmetatable({}, {__index = function(t, k)
local files = {}
for file in result:gmatch('[^\n]+') do files[#files + 1] = file end
return files
- elseif k == 'filteredlist' then
+ elseif k == 'filteredlist' or
+ k:find('input') and result:match('^[^\n]+\n?(.*)$'):find('\n') then
local button, value = result:match('^([^\n]+)\n?(.*)$')
if not options.string_output then button = tonumber(button) end
+ if k:find('input') then
+ options.string_output, options.select_multiple = true, true
+ end
local items = {}
for item in value:gmatch('[^\n]+') do
items[#items + 1] = options.string_output and item or tonumber(item) + 1