mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
[java-formatter] reformat added while added block
This commit is contained in:
@@ -1289,7 +1289,7 @@ public abstract class AbstractJavaBlock extends AbstractBlock implements JavaBlo
|
||||
|
||||
int startOffset = getTextRange().getStartOffset();
|
||||
if (ranges.isOnInsertedLine(startOffset)) {
|
||||
if (myNode instanceof PsiForStatement || myNode instanceof PsiIfStatement) {
|
||||
if (myNode instanceof PsiForStatement || myNode instanceof PsiIfStatement || myNode instanceof PsiWhileStatement) {
|
||||
return new ExtraReformatRanges(myNode.getTextRange());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user