Fix file opening issue with control characters initial appearence
Fix #13988, close #15219pull/15224/head
parent
6c660a71b3
commit
cfcb0d73cf
|
@ -6645,10 +6645,12 @@ void Notepad_plus::notifyBufferActivated(BufferID bufid, int view)
|
||||||
if (view == MAIN_VIEW)
|
if (view == MAIN_VIEW)
|
||||||
{
|
{
|
||||||
_autoCompleteMain.setLanguage(buf->getLangType());
|
_autoCompleteMain.setLanguage(buf->getLangType());
|
||||||
|
_mainEditView.maintainStateForNpc();
|
||||||
}
|
}
|
||||||
else if (view == SUB_VIEW)
|
else if (view == SUB_VIEW)
|
||||||
{
|
{
|
||||||
_autoCompleteSub.setLanguage(buf->getLangType());
|
_autoCompleteSub.setLanguage(buf->getLangType());
|
||||||
|
_subEditView.maintainStateForNpc();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (view != currentView())
|
if (view != currentView())
|
||||||
|
|
Loading…
Reference in New Issue