Fixed incorrect method

This commit is contained in:
Valentin Kipyatkov
2015-05-28 22:09:07 +03:00
parent c8223fff9e
commit 65383cf68b
@@ -30,7 +30,7 @@ public val PsiElement.endOffset: Int
public fun PsiElement.getStartOffsetIn(ancestor: PsiElement): Int {
var offset = 0
var parent = this
while (parent != this) {
while (parent != ancestor) {
offset += parent.getStartOffsetInParent()
parent = parent.getParent()
}