replacement balloon is hidden now if regex is off

This commit is contained in:
andrey zaytsev
2011-03-02 18:21:50 +03:00
parent a6b7f811ff
commit 136c6b8305
@@ -221,7 +221,7 @@ public class LivePreview extends DocumentAdapter implements ReplacementView.Dele
final Editor editor = mySearchResults.getEditor();
if (myDelegate != null && cursor != null) {
String replacementPreviewText = myDelegate.getStringToReplace(editor, cursor);
if (replacementPreviewText != null) {
if (replacementPreviewText != null && mySearchResults.getFindModel().isRegularExpressions()) {
ReplacementView replacementView = new ReplacementView(replacementPreviewText, cursor);
replacementView.setDelegate(this);