[BUG_FIXED] Fix closing several detected non-existing files bug.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@630 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
Don Ho 2010-04-18 07:37:30 +00:00
parent c1ba3a14b3
commit 5aab10a730
1 changed files with 10 additions and 1 deletions

View File

@ -334,9 +334,18 @@ void FileManager::init(Notepad_plus * pNotepadPlus, ScintillaEditView * pscratch
}
void FileManager::checkFilesystemChanges() {
for(size_t i = 0; i < _nrBufs; i++) {
for(int i = int(_nrBufs -1) ; i >= 0 ; i--)
{
if (i >= int(_nrBufs))
{
if (_nrBufs == 0)
return;
i = _nrBufs - 1;
}
_buffers[i]->checkFileState(); //something has changed. Triggers update automatically
}
}
int FileManager::getBufferIndexByID(BufferID id) {