fix #2060 by handling blank search pattern

This commit is contained in:
chrox
2016-06-15 02:34:46 +08:00
parent 22d0dbfb4f
commit 5bbcae954e
2 changed files with 3 additions and 0 deletions

View File

@@ -1087,6 +1087,7 @@ local function all_matches(boxes, pattern, caseInsensitive)
local function match(i, j)
local pindex = 1
local matched_indices = {}
if #plist == 0 then return end
while true do
if #boxes[i] < j then
j = j - #boxes[i]