From 6ceffde0ec4421b46a349b97d56eaa9144c21625 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 25 Mar 2011 17:20:59 -0400 Subject: Snapopen allows multiple files to be selected now. --- core/gui.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/gui.lua') diff --git a/core/gui.lua b/core/gui.lua index a7725e29..4a67b220 100644 --- a/core/gui.lua +++ b/core/gui.lua @@ -65,7 +65,7 @@ function gui.filteredlist(title, columns, items, int_return, ...) '--columns', columns, '--items', items, ...) - local patt = int_return and '(%-?%d+)\n(%d+)$' or '([^\n]+)\n([^\n]+)$' + local patt = int_return and '^(%-?%d+)\n(%d+)$' or '^([^\n]+)\n(.+)$' local response, value = out:match(patt) if response == (int_return and '1' or 'gtk-ok') then return not int_return and value or tonumber(value) -- cgit v1.2.3