Use buffer coordinates in TokenizedBuffer::scopeDescriptorForPosition

Fixes #7073
This commit is contained in:
Nathan Sobo
2015-06-05 18:17:30 +02:00
parent d139ef9399
commit 53a3239379

View File

@@ -405,7 +405,7 @@ class TokenizedBuffer extends Model
iterator = @tokenizedLines[row].getTokenIterator()
while iterator.next()
if iterator.getScreenEnd() > column
if iterator.getBufferEnd() > column
scopes = iterator.getScopes()
break