mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed EA-56673 - IAE: ChangeUtil.copyElement
This commit is contained in:
+1
-1
@@ -501,7 +501,7 @@ public class PyStatementMover extends LineMover {
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (startElement != endElement) {
|
||||
if (startElement != endElement && nextSibling != null) {
|
||||
scope.addRangeAfter(nextSibling, endElement, anchor);
|
||||
}
|
||||
addedElement = scope.addAfter(startElement, anchor);
|
||||
|
||||
Reference in New Issue
Block a user