mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-30 01:04:57 +02:00
[BUG_FIXED] Fix the single tag colourising bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@252 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
f154e6984d
commit
4c138a5518
@ -2465,8 +2465,11 @@ bool Notepad_plus::getXmlMatchedTagsPos(XmlMatchedTagsPos & tagsPos)
|
||||
}
|
||||
|
||||
case inSingleTag : // if in single tag
|
||||
{
|
||||
tagsPos.tagCloseStart = -1;
|
||||
tagsPos.tagCloseEnd = -1;
|
||||
return true;
|
||||
|
||||
}
|
||||
default: // if outOfTag, just quit
|
||||
return false;
|
||||
|
||||
@ -2492,7 +2495,9 @@ void Notepad_plus::tagMatch()
|
||||
{
|
||||
_pEditView->execute(SCI_SETINDICATORCURRENT, SCE_UNIVERSAL_TAGMATCH);
|
||||
_pEditView->execute(SCI_INDICATORFILLRANGE, xmlTags.tagOpenStart, xmlTags.tagOpenEnd - xmlTags.tagOpenStart);
|
||||
_pEditView->execute(SCI_INDICATORFILLRANGE, xmlTags.tagCloseStart, xmlTags.tagCloseEnd - xmlTags.tagCloseStart);
|
||||
|
||||
if ((xmlTags.tagCloseStart != -1) && (xmlTags.tagCloseEnd != -1))
|
||||
_pEditView->execute(SCI_INDICATORFILLRANGE, xmlTags.tagCloseStart, xmlTags.tagCloseEnd - xmlTags.tagCloseStart);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user