mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-23578 Properly collapse whitespaces surrounding deleted PSI range in CodeEditUtil
This commit is contained in:
@@ -142,7 +142,7 @@ public class CodeEditUtil {
|
||||
assert child == last : last + " is not a successor of " + first + " in the .getTreeNext() chain";
|
||||
|
||||
final ASTNode prevLeaf = TreeUtil.prevLeaf(first);
|
||||
final ASTNode nextLeaf = TreeUtil.nextLeaf(first);
|
||||
final ASTNode nextLeaf = TreeUtil.nextLeaf(last);
|
||||
parent.removeRange(first, last.getTreeNext());
|
||||
ASTNode nextLeafToAdjust = nextLeaf;
|
||||
if (nextLeafToAdjust != null && prevLeaf != null && nextLeafToAdjust.getTreeParent() == null) {
|
||||
|
||||
Reference in New Issue
Block a user