Fix brace match not working in Large File Restriction

Fix also the highlight remaining issue while Large File Restriction disabled.
This commit is contained in:
Don Ho 2022-10-20 16:19:49 +02:00
parent 6755daf223
commit 7e080a46bb
2 changed files with 7 additions and 1 deletions

View File

@ -902,7 +902,7 @@ BOOL Notepad_plus::notify(SCNotification *notification)
xmlTagMatchHiliter.tagMatch(nppGui._enableTagAttrsHilite);
}
if (nppGui._enableSmartHilite && !currentBuf->allowSmartHilite())
if (nppGui._enableSmartHilite && currentBuf->allowSmartHilite())
{
if (nppGui._disableSmartHiliteTmp)
nppGui._disableSmartHiliteTmp = false;

View File

@ -5014,6 +5014,12 @@ intptr_t CALLBACK PerformanceSubDlg::run_dlgProc(UINT message , WPARAM wParam, L
::EnableWindow(::GetDlgItem(_hSelf, IDC_CHECK_PERFORMANCE_DEACTIVATEWORDWRAP), largeFileRestrictionEnabled);
redraw();
if (largeFileRestrictionEnabled)
{
::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_CLEANSMARTHILITING, 0, 0);
::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_CLEANBRACEMATCH, 0, 0);
}
}
return TRUE;