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:
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,
|
||||
|
Loading…
Reference in New Issue
Block a user