         
         self.clearNumberOfReplaced()
         
-        guard let field = self.replacementResultField else { return }
-        
-        field.isHidden = false
-        field.stringValue = {
+        let message: String? = {
             switch numberOfReplaced {
             case -1:
-                return ""
+                return nil
             case 0:
                 return NSLocalizedString("Not Replaced", comment: "")
             default:

        
        self.clearNumberOfFound()
        
        guard let field = self.findResultField else { return }
        
        field.isHidden = false
        field.stringValue = {
            switch numberOfFound {
            case -1:
                return ""
            case 0:
                return NSLocalizedString("Not Found", comment: "")
            default:

                              String.localizedStringWithFormat("%li", numberOfFound))
            }
        }()
        self.applyResult(message: message, textField: self.findResultField!, textView: self.findTextView!)
        
        // dismiss result either client text or find string did change
        self.currentResultMessageTarget = target.layoutManager
