mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Groovy: Remove extra spaces after deleted statements. So no extra line feed in Introduce Variable appears
This commit is contained in:
+1
-1
@@ -522,7 +522,7 @@ public class PsiImplUtil {
|
||||
while (next != null) {
|
||||
final ASTNode node = next.getNode();
|
||||
final IElementType type = node.getElementType();
|
||||
if (type == GroovyTokenTypes.mSEMI) {
|
||||
if (type == GroovyTokenTypes.mSEMI || type == TokenType.WHITE_SPACE && !next.getText().contains("\n")) {
|
||||
final PsiElement nnext = next.getNextSibling();
|
||||
container.deleteChildRange(next, next);
|
||||
next = nnext;
|
||||
|
||||
Reference in New Issue
Block a user