     /// number of replaced in replacement string field becomes no more valid
     @objc private func clearNumberOfReplaced(_ notification: Notification? = nil) {
         
-        self.replacementResultField?.isHidden = true
-        self.replacementResultField?.stringValue = ""
-        self.replacementTextView?.enclosingScrollView?.contentView.contentInsets.right = 0
+        self.applyResult(message: nil, textField: self.replacementResultField!, textView: self.replacementTextView!)
+    }
+    
+    
+    /// apply message to UI
+    private func applyResult(message: String?, textField: NSTextField, textView: NSTextView) {
+    
+        guard let string = message else {
+            textField.isHidden = true
+            textView.enclosingScrollView?.contentView.contentInsets.right = 0
+            return
+        }
+        
+        // add extra scroll margin to the right side of the textView, so that entire input can be reead
+        textField.stringValue = string
+        textField.sizeToFit()
+        textField.isHidden = false
+        textView.enclosingScrollView?.contentView.contentInsets.right = textField.frame.width
     }
     
 }

                              String.localizedStringWithFormat("%li", numberOfFound))
            }
        }()
        
        self.findTextView?.enclosingScrollView?.contentView.contentInsets.right = field.frame.width
        moof(field.frame.width)
        
        // dismiss result either client text or find string did change
        self.currentResultMessageTarget = target.layoutManager

                              String.localizedStringWithFormat("%li", numberOfReplaced))
            }
        }()
        self.applyResult(message: message, textField: self.replacementResultField!, textView: self.replacementTextView!)
    }

    
