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

Commit

Permalink
If user cancels save as dialog after changing the encoding of dirty f…
Browse files Browse the repository at this point in the history
…ile, then encoding should not be changed in the file data structure (#13517)
  • Loading branch information
saurabh95 authored and swmitra committed Jul 4, 2017
1 parent 933806b commit 024bee9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/editor/EditorStatusBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,8 @@ define(function (require, exports, module) {
} else {
document.file._encoding = originalEncoding;
}
}).fail(function () {
document.file._encoding = originalEncoding;
});
} else if (document.file instanceof InMemoryFile) {
encodingSelect.$button.text(encoding);
Expand Down

0 comments on commit 024bee9

Please sign in to comment.