mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix #2060 by handling blank search pattern
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user