From 49260a1dee27d902fb462a1420aec2303dc8220f Mon Sep 17 00:00:00 2001 From: Don Ho Date: Mon, 19 Oct 2015 23:32:44 +0200 Subject: [PATCH] Fix functionlist not working for Javascript regression. --- PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp b/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp index 375df9530..ca54aae57 100644 --- a/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp +++ b/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp @@ -244,6 +244,9 @@ void FunctionListPanel::reload() const TCHAR *fn = ((*_ppEditView)->getCurrentBuffer())->getFileName(); LangType langID = ((*_ppEditView)->getCurrentBuffer())->getLangType(); + if (langID == L_JAVASCRIPT) + langID = L_JS; + const TCHAR *udln = NULL; if (langID == L_USER) {