mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
move multiple statements correctly past anonymous class
This commit is contained in:
+1
-1
@@ -111,7 +111,7 @@ class StatementMover extends LineMover {
|
||||
return destLine;
|
||||
}
|
||||
PsiElement sibling =
|
||||
StatementUpDownMover.firstNonWhiteElement(down ? range.firstElement.getNextSibling() : range.firstElement.getPrevSibling(), down);
|
||||
StatementUpDownMover.firstNonWhiteElement(down ? range.lastElement.getNextSibling() : range.firstElement.getPrevSibling(), down);
|
||||
PsiElement toMove = sibling;
|
||||
if (!(sibling instanceof PsiStatement)) {
|
||||
return destLine;
|
||||
|
||||
Reference in New Issue
Block a user