Skip to content

Commit

Permalink
Merge branch 'npp_official_svn' into jl/LH-45/integrate-npp-svn
Browse files Browse the repository at this point in the history
[BUG_FIXED] Fix closing several detected non-existing files bug.

[#45]

Signed-off-by: Jocelyn Legault <jocelynlegault@gmail.com>
  • Loading branch information
joce committed Oct 3, 2010
2 parents a16f749 + f7f8360 commit a830f51
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion PowerEditor/src/ScintillaComponent/Buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,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) {
Expand Down

0 comments on commit a830f51

Please sign in to comment.