mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Fixed search with empty pattern (from NuPogodi).
This commit is contained in:
committed by
Tigran Aivazian
parent
17acaa27b5
commit
10592c68b0
@@ -201,6 +201,8 @@ function FileHistory:addAllCommands()
|
||||
self.keywords = InputBox:input(G_height - 100, 100, "Search:", old_keywords)
|
||||
if self.keywords then
|
||||
self:setSearchResult(self.keywords)
|
||||
else
|
||||
self.keywords = old_keywords
|
||||
end
|
||||
if #self.result < 1 then
|
||||
InfoMessage:inform("No hits! Try another keyword. ", 2000, 1, MSG_WARN,
|
||||
|
||||
Reference in New Issue
Block a user