mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
search for error elements through all siblings
#WEB-13313 fixed
This commit is contained in:
@@ -278,8 +278,8 @@ public class EnterHandler extends BaseEnterHandler {
|
||||
*/
|
||||
private static boolean isInvalidPsi(@NotNull PsiElement base) {
|
||||
for (PsiElement current = base.getNextSibling(); current != null; current = current.getNextSibling()) {
|
||||
if (current.getTextLength() != 0) {
|
||||
return current instanceof PsiErrorElement;
|
||||
if (current instanceof PsiErrorElement) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user