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:
@@ -75,6 +75,8 @@ function ReaderSearch:onShowSearchDialog(text)
|
||||
end
|
||||
|
||||
function ReaderSearch:search(pattern, origin)
|
||||
DEBUG("search pattern", pattern)
|
||||
if pattern == nil or pattern == '' then return end
|
||||
local direction = self.direction
|
||||
local case = self.case_insensitive
|
||||
local page = self.view.state.page
|
||||
|
||||
Reference in New Issue
Block a user