diff --git a/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp b/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp index 47ac6be497a7..92580abc26cb 100644 --- a/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp +++ b/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp @@ -1861,7 +1861,7 @@ void ScintillaEditView::defineDocType(LangType typeDoc) Buffer* buf = MainFileManager.getBufferByID(_currentBufferID); - if (buf->getEncoding() == NPP_CP_DOS_437) + if (buf->getEncoding() == NPP_CP_DOS_437 && !buf->isDirty()) { MainFileManager.reloadBuffer(buf); }