mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-22 21:34:58 +02:00
Revert "Fix syntax highlighting regression with cmdline argument"
This reverts commit 7a2f809e68fee49d5fd3f9fc08521478d5f356e5.
This commit is contained in:
parent
7a2f809e68
commit
2871ee519b
@ -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);
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user