[BUG_FIXED] Fix cpu high consummation bug while document is cloned with smart highlighting and xml matched highlighting features activating.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@331 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
fcc46e0477
commit
8d4289a18d
|
@ -2361,15 +2361,20 @@ BOOL Notepad_plus::notify(SCNotification *notification)
|
|||
|
||||
case SCN_UPDATEUI:
|
||||
{
|
||||
if (notification->nmhdr.hwndFrom != _pEditView->getHSelf())
|
||||
break;
|
||||
|
||||
braceMatch();
|
||||
|
||||
const NppGUI & nppGUI = (NppParameters::getInstance())->getNppGUI();
|
||||
if (nppGUI._enableTagsMatchHilite)
|
||||
if (nppGUI._enableTagsMatchHilite/* && _pEditView->getHSelf() == notification->nmhdr.hwndFrom*/)
|
||||
{
|
||||
XmlMatchedTagsHighlighter xmlTagMatchHiliter(_pEditView);
|
||||
xmlTagMatchHiliter.tagMatch(nppGUI._enableTagAttrsHilite);
|
||||
}
|
||||
|
||||
_smartHighlighter.highlightView(notifyView);
|
||||
|
||||
updateStatusBar();
|
||||
AutoCompletion * autoC = isFromPrimary?&_autoCompleteMain:&_autoCompleteSub;
|
||||
autoC->update(0);
|
||||
|
|
Loading…
Reference in New Issue