From 1df6c960145cdc2c64071f71e5d4be15c0ca2fe6 Mon Sep 17 00:00:00 2001 From: "Kirill.Skrygan" Date: Tue, 19 Nov 2019 16:44:52 +0300 Subject: [PATCH] IDEA-CR-55503: turn off log as editor tab by default (cherry picked from commit ee6936940994eb323131076bf4cc9cb263550387) GitOrigin-RevId: 3e8ce441e2059b40ab21872a9a6f068191daa9f7 --- platform/core-api/src/com/intellij/openapi/vfs/VfsUtilCore.java | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/core-api/src/com/intellij/openapi/vfs/VfsUtilCore.java b/platform/core-api/src/com/intellij/openapi/vfs/VfsUtilCore.java index fbb665f9c54c..5813e05e930b 100644 --- a/platform/core-api/src/com/intellij/openapi/vfs/VfsUtilCore.java +++ b/platform/core-api/src/com/intellij/openapi/vfs/VfsUtilCore.java @@ -241,6 +241,7 @@ public class VfsUtilCore { @NotNull public static VirtualFile copyFile(Object requestor, @NotNull VirtualFile file, @NotNull VirtualFile toDir, @NotNull String newName) throws IOException { VirtualFile newChild = toDir.createChildData(requestor, newName); + newChild.setBOM(file.getBOM()); newChild.setBinaryContent(file.contentsToByteArray(), -1, -1, requestor); return newChild; }