mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-21 07:58:04 +03:00
Fix test, use bufferRowsFOrScreenRowsProperly
This commit is contained in:
parent
b4afc24ee8
commit
f1cf8496f8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user