Fixed EA-66835

This commit is contained in:
Valentin Kipyatkov
2015-06-01 20:42:48 +03:00
parent 6d2d054b3b
commit fd4a634001
@@ -67,7 +67,7 @@ public class KotlinCodeBlockSelectioner : ExtendWordSelectionHandlerBase() {
.dropWhile { it.getElementType() != JetTokens.RBRACE } // search for '}'
.drop(1) // skip it
.dropWhile { it is PsiWhiteSpace } // and skip all whitespaces
.firstOrNull() ?: blockNode.getLastChildNode()!!
.firstOrNull() ?: blockNode
return node.getTextRange()!!.getEndOffset()
}
}