diff --git a/PowerEditor/src/ScitillaComponent/Buffer.cpp b/PowerEditor/src/ScitillaComponent/Buffer.cpp index f6f24293..7667a5c0 100644 --- a/PowerEditor/src/ScitillaComponent/Buffer.cpp +++ b/PowerEditor/src/ScitillaComponent/Buffer.cpp @@ -60,10 +60,11 @@ Buffer::Buffer(FileManager * pManager, BufferID id, Document doc, DocFileStatus _userLangExt = TEXT(""); _fullPathName = TEXT(""); _fileName = NULL; + _currentStatus = type; + setFileName(fileName, ndds._lang); updateTimeStamp(); checkFileState(); - _currentStatus = type; _isDirty = false; _needLexer = false; //new buffers do not need lexing, Scintilla takes care of that