Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
c3e6d121
Commit
c3e6d121
authored
8 years ago
by
Mikhail Golubev
Browse files
Options
Download
Email Patches
Plain Diff
PY-23578 Properly collapse whitespaces surrounding deleted PSI range in CodeEditUtil
parent
f69a58ab
Branches unavailable
Tags unavailable
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/core-impl/src/com/intellij/psi/impl/source/codeStyle/CodeEditUtil.java
+1
-1
.../com/intellij/psi/impl/source/codeStyle/CodeEditUtil.java
with
1 addition
and
1 deletion
+1
-1
platform/core-impl/src/com/intellij/psi/impl/source/codeStyle/CodeEditUtil.java
+
1
-
1
View file @
c3e6d121
...
...
@@ -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
(
fir
st
);
final
ASTNode
nextLeaf
=
TreeUtil
.
nextLeaf
(
la
st
);
parent
.
removeRange
(
first
,
last
.
getTreeNext
());
ASTNode
nextLeafToAdjust
=
nextLeaf
;
if
(
nextLeafToAdjust
!=
null
&&
prevLeaf
!=
null
&&
nextLeafToAdjust
.
getTreeParent
()
==
null
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help