Fix syntax highlighting regression with cmdline argument
41a5bf0245 (commitcomment-69921228)
This commit is contained in:
parent
41a5bf0245
commit
7a2f809e68
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue