Merge pull request #138 from milipili/master

[ScitillaComponent: Buffer: _currentStatus is used uninitialized in ctor
This commit is contained in:
Don HO 2015-05-30 02:41:46 +02:00
commit 8976240dcd
1 changed files with 2 additions and 1 deletions

View File

@ -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