mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-24 06:14:47 +02:00
[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:
parent
c1ba3a14b3
commit
5aab10a730
@ -334,9 +334,18 @@ void FileManager::init(Notepad_plus * pNotepadPlus, ScintillaEditView * pscratch
|
|||||||
}
|
}
|
||||||
|
|
||||||
void FileManager::checkFilesystemChanges() {
|
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
|
_buffers[i]->checkFileState(); //something has changed. Triggers update automatically
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int FileManager::getBufferIndexByID(BufferID id) {
|
int FileManager::getBufferIndexByID(BufferID id) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user