Fix file opening issue with control characters initial appearence

Fix #13988, close #15219
pull/15224/head
ozone10 2024-05-30 15:39:57 +02:00 committed by Don Ho
parent 6c660a71b3
commit cfcb0d73cf
1 changed files with 2 additions and 0 deletions

View File

@ -6645,10 +6645,12 @@ void Notepad_plus::notifyBufferActivated(BufferID bufid, int view)
if (view == MAIN_VIEW)
{
_autoCompleteMain.setLanguage(buf->getLangType());
_mainEditView.maintainStateForNpc();
}
else if (view == SUB_VIEW)
{
_autoCompleteSub.setLanguage(buf->getLangType());
_subEditView.maintainStateForNpc();
}
if (view != currentView())