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,