Fix "Close all BUT this" regression

Due to commit a82819972a
This commit is contained in:
Don HO 2020-08-09 18:18:42 +02:00
parent 5271b88fc3
commit 1eb7d2bef5
1 changed files with 1 additions and 1 deletions

View File

@ -1249,6 +1249,7 @@ bool Notepad_plus::fileCloseAllButCurrent()
{
BufferID current = _pEditView->getCurrentBufferID();
const int activeViewID = currentView();
int active = _pDocTab->getCurrentTabIndex();
bool noSaveToAll = false;
bool saveToAll = false;
std::vector<unsigned int> mainSaveOpIndex, subSaveOpIndex;
@ -1422,7 +1423,6 @@ bool Notepad_plus::fileCloseAllButCurrent()
}
const int viewNo = currentView();
int active = _pDocTab->getCurrentTabIndex();
size_t nbItems = _pDocTab->nbItem();
activateBuffer(_pDocTab->getBufferByIndex(0), viewNo);