mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed typing { after $
This commit is contained in:
@@ -356,9 +356,12 @@ public class TypedHandler implements TypedActionHandler {
|
||||
|
||||
// TODO: handle it with insertAfterLParen(...)
|
||||
if (!JspxCompletionData.isJavaContext(elementAt) &&
|
||||
elementAt.getText().equals("${")
|
||||
elementAt.getText().equals("{")
|
||||
) {
|
||||
editor.getDocument().insertString(offset, "}");
|
||||
PsiElement prevSibling = elementAt.getPrevSibling();
|
||||
if (prevSibling!=null && prevSibling.getText().equals("$")) {
|
||||
editor.getDocument().insertString(offset, "}");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user