diff --git a/source/com/intellij/psi/impl/source/xml/XmlTagImpl.java b/source/com/intellij/psi/impl/source/xml/XmlTagImpl.java index 6a7875dd587c..e47a1a32011f 100644 --- a/source/com/intellij/psi/impl/source/xml/XmlTagImpl.java +++ b/source/com/intellij/psi/impl/source/xml/XmlTagImpl.java @@ -784,6 +784,7 @@ public class XmlTagImpl extends XmlElementImpl implements XmlTag/*, Modification if (child.getElementType() != XmlElementType.XML_TEXT) { if (treePrev.getElementType() == XmlElementType.XML_TEXT && treeNext.getElementType() == XmlElementType.XML_TEXT) { final XmlTextImpl xmlText = (XmlTextImpl)SourceTreeToPsiMap.treeElementToPsi(treePrev); + final String oldText = xmlText.getText(); model.runTransaction(new PomTransactionBase(this) { public PomModelEvent run() throws IncorrectOperationException{ final int displayOffset = xmlText.getValue().length(); @@ -807,6 +808,7 @@ public class XmlTagImpl extends XmlElementImpl implements XmlTag/*, Modification final XmlAspectChangeSet xmlAspectChangeSet = new XmlAspectChangeSet(model, (XmlFile)getContainingFile()); xmlAspectChangeSet.add(new XmlTagChildRemoved(XmlTagImpl.this, (XmlTagChild)treeNext)); xmlAspectChangeSet.add(new XmlTagChildRemoved(XmlTagImpl.this, (XmlTagChild)child)); + xmlAspectChangeSet.add(new XmlTextChanged(xmlText, oldText)); event.registerChangeSet(model.getModelAspect(XmlAspect.class), xmlAspectChangeSet); } return event;