Browse Source

[BUG_FIXED] Fix the single tag colourising bug.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@252 f5eea248-9336-0410-98b8-ebc06183d4e3
pull/343/head^2
donho 17 years ago
parent
commit
4c138a5518
  1. 9
      PowerEditor/src/Notepad_plus.cpp

9
PowerEditor/src/Notepad_plus.cpp

@ -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…
Cancel
Save