Fix applying MS-Dos style displayed incorrectly issue

This commit is contained in:
Don Ho 2024-12-03 18:36:08 +01:00
parent dd0b557e14
commit 3426d58339

View File

@ -132,6 +132,8 @@ void Buffer::setLangType(LangType lang, const wchar_t* userLangName)
_lang = lang;
if (_lang == L_USER)
_userLangExt = userLangName;
else if (_lang == L_ASCII)
_encoding = NPP_CP_DOS_437;
_needLexer = true; //change of lang means lexern needs updating
doNotify(BufferChangeLanguage | BufferChangeLexing);