mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Fix test, use bufferRowsFOrScreenRowsProperly
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{_, $, $$, fs, Editor, Range, RootView} = require 'atom'
|
||||
path = require 'path'
|
||||
|
||||
fdescribe "Editor", ->
|
||||
describe "Editor", ->
|
||||
[buffer, editor, editSession, cachedLineHeight, cachedCharWidth] = []
|
||||
|
||||
beforeEach ->
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user