mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-24 22:34:54 +02:00
[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:
|
case SCN_UPDATEUI:
|
||||||
{
|
{
|
||||||
|
if (notification->nmhdr.hwndFrom != _pEditView->getHSelf())
|
||||||
|
break;
|
||||||
|
|
||||||
braceMatch();
|
braceMatch();
|
||||||
|
|
||||||
const NppGUI & nppGUI = (NppParameters::getInstance())->getNppGUI();
|
const NppGUI & nppGUI = (NppParameters::getInstance())->getNppGUI();
|
||||||
if (nppGUI._enableTagsMatchHilite)
|
if (nppGUI._enableTagsMatchHilite/* && _pEditView->getHSelf() == notification->nmhdr.hwndFrom*/)
|
||||||
{
|
{
|
||||||
XmlMatchedTagsHighlighter xmlTagMatchHiliter(_pEditView);
|
XmlMatchedTagsHighlighter xmlTagMatchHiliter(_pEditView);
|
||||||
xmlTagMatchHiliter.tagMatch(nppGUI._enableTagAttrsHilite);
|
xmlTagMatchHiliter.tagMatch(nppGUI._enableTagAttrsHilite);
|
||||||
}
|
}
|
||||||
|
|
||||||
_smartHighlighter.highlightView(notifyView);
|
_smartHighlighter.highlightView(notifyView);
|
||||||
|
|
||||||
updateStatusBar();
|
updateStatusBar();
|
||||||
AutoCompletion * autoC = isFromPrimary?&_autoCompleteMain:&_autoCompleteSub;
|
AutoCompletion * autoC = isFromPrimary?&_autoCompleteMain:&_autoCompleteSub;
|
||||||
autoC->update(0);
|
autoC->update(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user