Fix closing file in 2nd view not removed from Doc Switcher

Fix #8800, close #8862
pull/8897/head^2
Roshni-P 2020-09-16 07:11:01 +05:30 committed by Don HO
parent 98c4990175
commit 861f863ef7
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E
1 changed files with 2 additions and 0 deletions

View File

@ -746,6 +746,8 @@ void Notepad_plus::doClose(BufferID id, int whichOne, bool doDeleteBackup)
// if the current activated buffer is in this view,
// then get buffer ID to remove the entry from File Switcher Pannel
hiddenBufferID = reinterpret_cast<BufferID>(::SendMessage(_pPublicInterface->getHSelf(), NPPM_GETBUFFERIDFROMPOS, 0, whichOne));
if (!isBufRemoved && hiddenBufferID != BUFFER_INVALID && _pFileSwitcherPanel)
_pFileSwitcherPanel->closeItem(hiddenBufferID, whichOne);
}
// Notify plugins that current file is closed