Fix JavaScript listed twice in Language Preferences issue

Fix #16861, fix #4521
This commit is contained in:
Don Ho 2025-07-29 20:23:37 +02:00
parent 8fd2d12ab5
commit bf6fd373d4

View File

@ -4405,7 +4405,7 @@ intptr_t CALLBACK LanguageSubDlg::run_dlgProc(UINT message, WPARAM wParam, LPARA
// //
for (int i = L_TEXT ; i < nppParam.L_END ; ++i) for (int i = L_TEXT ; i < nppParam.L_END ; ++i)
{ {
if (static_cast<LangType>(i) != L_USER) if (static_cast<LangType>(i) != L_USER && static_cast<LangType>(i) != L_JS_EMBEDDED)
{ {
int cmdID = nppParam.langTypeToCommandID(static_cast<LangType>(i)); int cmdID = nppParam.langTypeToCommandID(static_cast<LangType>(i));
if ((cmdID != -1)) if ((cmdID != -1))