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