Added reporting of searched for text (#416).

This commit is contained in:
Paul Kulchenko
2015-03-31 15:18:31 -07:00
parent 48a04113b9
commit edce5fa76c

View File

@@ -518,6 +518,7 @@ function findReplace:RunInFiles(replace)
-- reseditor may already be closed, so check if it's valid first
if pcall(function() reseditor:GetId() end) then
reseditor:AppendText(("Searched for '%s'. "):format(findText))
reseditor:AppendText(("Found %d instance(s) on %d line(s) in %d file(s).")
:format(self.occurrences, self.lines, self.files))
reseditor:EmptyUndoBuffer() -- don't undo the changes in the results