Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 024bee9

Browse files
saurabh95swmitra
authored andcommitted
If user cancels save as dialog after changing the encoding of dirty file, then encoding should not be changed in the file data structure (#13517)
1 parent 933806b commit 024bee9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/editor/EditorStatusBar.js

+2
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,8 @@ define(function (require, exports, module) {
486486
} else {
487487
document.file._encoding = originalEncoding;
488488
}
489+
}).fail(function () {
490+
document.file._encoding = originalEncoding;
489491
});
490492
} else if (document.file instanceof InMemoryFile) {
491493
encodingSelect.$button.text(encoding);

0 commit comments

Comments
 (0)