mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
don't force braces when completing in if condition
This commit is contained in:
@@ -121,7 +121,7 @@ public class JavaChainLookupElement extends LookupElementDecorator<LookupElement
|
||||
int formatStart = context.getOffset(oldStart);
|
||||
int formatEnd = context.getTailOffset();
|
||||
if (formatStart >= 0 && formatEnd >= 0) {
|
||||
CodeStyleManager.getInstance(context.getProject()).reformatRange(context.getFile(), formatStart, formatEnd);
|
||||
CodeStyleManager.getInstance(context.getProject()).reformatText(context.getFile(), formatStart, formatEnd);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user