Skip to content

Commit

Permalink
fix #5
Browse files Browse the repository at this point in the history
  • Loading branch information
hax committed Aug 3, 2016
1 parent 1022099 commit c71421b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/elastic-tabstops.js
Expand Up @@ -74,7 +74,9 @@ function observeEditor(editor) {
}

const presenter = editorElement.component.presenter
const cache = presenter.getLinesYardstick().pixelPositionsByLineIdAndColumn
const y = presenter.getLinesYardstick()
const cache = y.leftPixelPositionCache
|| y.pixelPositionsByLineIdAndColumn // Atom < 1.9
for (const line of lines) {
const id = presenter.lineIdForScreenRow(line)
delete cache[id]
Expand Down

0 comments on commit c71421b

Please sign in to comment.