From 9a8aa0f71a8af40e3ee3e094e743fb0d2d16761d Mon Sep 17 00:00:00 2001 From: Valentin Kipyatkov Date: Fri, 3 Oct 2014 17:48:12 +0400 Subject: [PATCH] Fixed tests for moving code up/down --- .../jet/plugin/codeInsight/upDownMover/JetDeclarationMover.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/src/org/jetbrains/jet/plugin/codeInsight/upDownMover/JetDeclarationMover.java b/idea/src/org/jetbrains/jet/plugin/codeInsight/upDownMover/JetDeclarationMover.java index 42e318db96e..62b9a54ab74 100644 --- a/idea/src/org/jetbrains/jet/plugin/codeInsight/upDownMover/JetDeclarationMover.java +++ b/idea/src/org/jetbrains/jet/plugin/codeInsight/upDownMover/JetDeclarationMover.java @@ -129,7 +129,7 @@ public class JetDeclarationMover extends AbstractJetUpDownMover { PsiElement result = element; - while (result instanceof PsiWhiteSpace || result instanceof PsiComment || result.getTextLength() == 0) { + while (result instanceof PsiWhiteSpace || result.getTextLength() == 0) { result = down ? result.getNextSibling() : result.getPrevSibling(); if (result == null) break; }