Commit c3e6d121 authored by Mikhail Golubev's avatar Mikhail Golubev
Browse files

PY-23578 Properly collapse whitespaces surrounding deleted PSI range in CodeEditUtil

parent f69a58ab
Branches unavailable Tags unavailable
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment