Fixed tests for moving code up/down

This commit is contained in:
Valentin Kipyatkov
2014-10-03 17:48:12 +04:00
parent f4b0f0e661
commit 9a8aa0f71a
@@ -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;
}