diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2014-02-18 23:14:09 -0500 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2014-02-18 23:14:09 -0500 |
commit | 0cde905a4c44d4ca60b9e6d121cfef70fb397fc3 (patch) | |
tree | da5346ecab8b7178930602ada08f1cfa7c41e7f7 /core/ui.lua | |
parent | 797674b8f29ddca2c8714387db226535d2d4c8ab (diff) |
Fixed bug with empty entries in multiple entry inputdialogs; core/ui.lua
Diffstat (limited to 'core/ui.lua')
-rw-r--r-- | core/ui.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ui.lua b/core/ui.lua index 4272055d..141c96f7 100644 --- a/core/ui.lua +++ b/core/ui.lua @@ -113,7 +113,7 @@ ui.dialogs = setmetatable({}, {__index = function(t, k) options.string_output, options.select_multiple = true, true end local items = {} - for item in value:gmatch('[^\n]+') do + for item in (value..'\n'):gmatch('([^\n]*)\n') do items[#items + 1] = options.string_output and item or tonumber(item) + 1 end return button, options.select_multiple and items or items[1] |