Fix test, use bufferRowsFOrScreenRowsProperly

This commit is contained in:
Ben Ogle 2013-10-03 11:53:34 -07:00
parent b4afc24ee8
commit f1cf8496f8
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{_, $, $$, fs, Editor, Range, RootView} = require 'atom'
path = require 'path'
fdescribe "Editor", ->
describe "Editor", ->
[buffer, editor, editSession, cachedLineHeight, cachedCharWidth] = []
beforeEach ->

View File

@ -1560,7 +1560,7 @@ class Editor extends View
positionLeftForLineAndColumn: (lineElement, screenRow, column) ->
return 0 if column == 0
bufferRow = @bufferRowsForScreenRows(screenRow)[0] ? screenRow
bufferRow = @bufferRowsForScreenRows(screenRow, screenRow)[0] ? screenRow
tokenizedLine = @activeEditSession.displayBuffer.tokenizedBuffer.tokenizedLines[bufferRow]
left = 0