aboutsummaryrefslogtreecommitdiff
path: root/core/gui.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/gui.lua')
-rw-r--r--core/gui.lua2
1 files changed, 1 insertions, 1 deletions
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)