From 136c6b830584592d1ace11fe2d58b8b331567c0c Mon Sep 17 00:00:00 2001 From: andrey zaytsev Date: Wed, 2 Mar 2011 18:21:08 +0300 Subject: [PATCH] replacement balloon is hidden now if regex is off --- .../src/com/intellij/find/impl/livePreview/LivePreview.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/find/impl/livePreview/LivePreview.java b/platform/lang-impl/src/com/intellij/find/impl/livePreview/LivePreview.java index d87b1a5e8980..2a29c1bae5ef 100644 --- a/platform/lang-impl/src/com/intellij/find/impl/livePreview/LivePreview.java +++ b/platform/lang-impl/src/com/intellij/find/impl/livePreview/LivePreview.java @@ -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);