mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Make luacheck >= 0.26 happy (#9174)
Re: https://github.com/koreader/koreader-base/pull/1487
This commit is contained in:
@@ -171,10 +171,10 @@ function ReaderSearch:onShowSearchDialog(text, direction, regex, case_insensitiv
|
||||
end
|
||||
return false
|
||||
end
|
||||
local do_search = function(search_func, _text, param)
|
||||
local do_search = function(search_func, search_term, param)
|
||||
return function()
|
||||
local no_results = true -- for notification
|
||||
local res = search_func(self, _text, param, regex, case_insensitive)
|
||||
local res = search_func(self, search_term, param, regex, case_insensitive)
|
||||
if res then
|
||||
if self.ui.document.info.has_pages then
|
||||
no_results = false
|
||||
|
||||
Reference in New Issue
Block a user