2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00

Fixed search with empty pattern (from NuPogodi).

This commit is contained in:
NuPogodi 2012-10-04 23:22:08 +01:00 committed by Tigran Aivazian
parent 17acaa27b5
commit 10592c68b0

View File

@ -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,