Fix syntax highlighting regression with cmdline argument

41a5bf0245 (commitcomment-69921228)
This commit is contained in:
Don Ho 2022-03-31 03:04:10 +02:00
parent 41a5bf0245
commit 7a2f809e68
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
else if (lt < L_END)
{
pBuf->setLangType(lt);
}

View File

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