From 014e5e9b2dda329aa20f7b1e8a528c7e37c1f61b Mon Sep 17 00:00:00 2001 From: xomx Date: Tue, 4 Mar 2025 19:12:52 +0100 Subject: [PATCH] Synchronize FunctionList panel with the current tab/buffer syntax set Ensures automatic switching to the currently used tab/buffer lang. Before, the FunctionList remained populated according to the previously used lang, even if the user switched to a different one (standard or UDL, it does not matter). In such a case a manual FL-reload/re-init was needed. --- PowerEditor/src/Notepad_plus.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 5c0122fc1..b1e214658 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -6737,6 +6737,9 @@ void Notepad_plus::notifyBufferChanged(Buffer * buffer, int mask) else if (_subEditView.getCurrentBuffer() == buffer) _autoCompleteSub.setLanguage(buffer->getLangType()); + if (_pFuncList) + _pFuncList->reload(); // sync FL with the current buffer lang + SCNotification scnN{}; scnN.nmhdr.code = NPPN_LANGCHANGED; scnN.nmhdr.hwndFrom = _pPublicInterface->getHSelf();