mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
FIXED WI-20186 Caret isn't indented if there is a comment after block start statement
This commit is contained in:
+2
-1
@@ -138,7 +138,8 @@ public abstract class JavaLikeLangLineIndentProvider extends FormatterBasedLineI
|
||||
}
|
||||
else {
|
||||
SemanticEditorPosition position = getPosition(editor, offset);
|
||||
if (position.before().isAt(RightParenthesis)) {
|
||||
position = position.before().beforeOptional(LineComment).beforeOptional(Whitespace);
|
||||
if (position.isAt(RightParenthesis)) {
|
||||
int offsetAfterParen = position.getStartOffset() + 1;
|
||||
position.beforeParentheses(LeftParenthesis, RightParenthesis);
|
||||
if (!position.isAtEnd()) {
|
||||
|
||||
Reference in New Issue
Block a user