From 10592c68b095bb7a44e1fd1b7058add1f97abd8d Mon Sep 17 00:00:00 2001 From: NuPogodi Date: Thu, 4 Oct 2012 23:22:08 +0100 Subject: [PATCH] Fixed search with empty pattern (from NuPogodi). --- filehistory.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/filehistory.lua b/filehistory.lua index c18bd42de..ec407ac5a 100644 --- a/filehistory.lua +++ b/filehistory.lua @@ -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,