From 0cde905a4c44d4ca60b9e6d121cfef70fb397fc3 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 18 Feb 2014 23:14:09 -0500 Subject: Fixed bug with empty entries in multiple entry inputdialogs; core/ui.lua --- core/ui.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/ui.lua') 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] -- cgit v1.2.3