Revert "Fix syntax highlighting regression with cmdline argument"

This reverts commit 7a2f809e68fee49d5fd3f9fc08521478d5f356e5.
This commit is contained in:
Don Ho 2022-04-01 19:16:41 +02:00
parent 7a2f809e68
commit 2871ee519b
2 changed files with 2 additions and 2 deletions

View File

@ -6121,7 +6121,7 @@ std::vector<generic_string> Notepad_plus::loadCommandlineParams(const TCHAR * co
{
pBuf->setLangType(L_USER, udl.c_str());
}
else if (lt < L_END)
else
{
pBuf->setLangType(lt);
}

View File

@ -226,7 +226,7 @@ LangType getLangTypeFromParam(ParamVector & params)
{
generic_string langStr;
if (!getParamVal('l', params, langStr))
return L_END;
return L_TEXT;
return NppParameters::getLangIDFromStr(langStr.c_str());
}