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);