mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-27 15:54:17 +02:00
Fix nfo file losing modification issue (regression)
The regression is introduced by:
dd0b557e14 (diff-d88ddee57a027ab23daf332c4778ced0cee352edcb34efdda1b218e8a75c61b2R1864)
Fix #15964, close #15969
This commit is contained in:
parent
a664213210
commit
2f1cdbbef8
@ -1861,7 +1861,7 @@ void ScintillaEditView::defineDocType(LangType typeDoc)
|
|||||||
|
|
||||||
Buffer* buf = MainFileManager.getBufferByID(_currentBufferID);
|
Buffer* buf = MainFileManager.getBufferByID(_currentBufferID);
|
||||||
|
|
||||||
if (buf->getEncoding() == NPP_CP_DOS_437)
|
if (buf->getEncoding() == NPP_CP_DOS_437 && !buf->isDirty())
|
||||||
{
|
{
|
||||||
MainFileManager.reloadBuffer(buf);
|
MainFileManager.reloadBuffer(buf);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user