Skip to content

Commit

Permalink
Fix nfo file losing modification issue (regression)
Browse files Browse the repository at this point in the history
  • Loading branch information
donho committed Dec 20, 2024
1 parent f205b12 commit d39d7fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d39d7fa

Please sign in to comment.