From ee35d4bf8a869d8e1d99ec13dfad9effb9bc84ed Mon Sep 17 00:00:00 2001 From: Paul Kulchenko Date: Thu, 23 Apr 2015 09:50:44 -0700 Subject: [PATCH] Added status message when search is cancelled by closing results tab (#416). --- src/editor/findreplace.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor/findreplace.lua b/src/editor/findreplace.lua index a205b9c6b3..5bd2d054b5 100644 --- a/src/editor/findreplace.lua +++ b/src/editor/findreplace.lua @@ -560,8 +560,8 @@ function findReplace:RunInFiles(replace) reseditor:EnsureVisibleEnforcePolicy(reseditor:GetLineCount()-1) end - self:SetStatus( - TR("Found %d instance.", self.occurrences):format(self.occurrences)) + self:SetStatus(not completed and TR("Cancelled by the user.") + or TR("Found %d instance.", self.occurrences):format(self.occurrences)) self.oveditor = nil self.toolbar:UpdateWindowUI(wx.wxUPDATE_UI_FROMIDLE) end