diff --git a/java/java-impl/src/com/intellij/codeInsight/editorActions/StringLiteralCopyPasteProcessor.java b/java/java-impl/src/com/intellij/codeInsight/editorActions/StringLiteralCopyPasteProcessor.java index a4b31b03b8f3..820e7e8dcc20 100644 --- a/java/java-impl/src/com/intellij/codeInsight/editorActions/StringLiteralCopyPasteProcessor.java +++ b/java/java-impl/src/com/intellij/codeInsight/editorActions/StringLiteralCopyPasteProcessor.java @@ -72,6 +72,9 @@ public class StringLiteralCopyPasteProcessor implements CopyPastePreProcessor { textWasChanged = true; buffer.append(unescaped); } + else { + buffer.append(fragment); + } } int blockSelectionPadding = deducedBlockSelectionWidth - (fileEndOffset - fileStartOffset); for (int j = 0; j < blockSelectionPadding; j++) {