mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
search for > position
This commit is contained in:
@@ -121,10 +121,10 @@ public class XmlSmartEnterProcessor extends SmartEnterProcessor {
|
||||
}
|
||||
else if (probableCommaOffset >= text.length() || ((ch = text.charAt(probableCommaOffset)) != '/' && ch != '>')) {
|
||||
final XmlAttribute xmlAttribute = PsiTreeUtil.getParentOfType(atCaret, XmlAttribute.class, false, XmlTag.class);
|
||||
final CharSequence text2insert = getClosingPart(xmlAttribute, tagAtCaret, true);
|
||||
final String text2insert = getClosingPart(xmlAttribute, tagAtCaret, true);
|
||||
|
||||
doc.insertString(insertionOffset, text2insert);
|
||||
caretTo = insertionOffset + (text2insert.length() > 2 ? 1 : text2insert.length());
|
||||
caretTo = insertionOffset + text2insert.indexOf('>') + 1;
|
||||
}
|
||||
|
||||
commitChanges(project, editor, psiFile, caretTo, null);
|
||||
|
||||
Reference in New Issue
Block a user