mirror of
https://github.com/atom/atom.git
synced 2026-02-12 23:55:10 -05:00
Fix wrong implementation in TextEditor.prototype.screenRowForBufferRow
This commit is contained in:
@@ -877,9 +877,9 @@ class TextEditor extends Model
|
||||
|
||||
screenRowForBufferRow: (row) ->
|
||||
if @largeFileMode
|
||||
bufferRow
|
||||
row
|
||||
else
|
||||
@displayLayer.translateScreenPosition(Point(screenRow, 0)).row
|
||||
@displayLayer.translateBufferPosition(Point(row, 0)).row
|
||||
|
||||
getRightmostScreenPosition: -> @displayLayer.getRightmostScreenPosition()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user