minor optimization

This commit is contained in:
xomx 2025-03-07 01:40:07 +01:00
parent 014e5e9b2d
commit a00af19e37

View File

@ -6737,7 +6737,7 @@ void Notepad_plus::notifyBufferChanged(Buffer * buffer, int mask)
else if (_subEditView.getCurrentBuffer() == buffer)
_autoCompleteSub.setLanguage(buffer->getLangType());
if (_pFuncList)
if (_pFuncList && (!_pFuncList->isClosed()) && _pFuncList->isVisible())
_pFuncList->reload(); // sync FL with the current buffer lang
SCNotification scnN{};