mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Helpful comments
This commit is contained in:
@@ -5,9 +5,9 @@ class RowMap
|
||||
|
||||
screenRowRangeForBufferRow: (targetBufferRow) ->
|
||||
{ mapping, screenRow, bufferRow } = @traverseToBufferRow(targetBufferRow)
|
||||
if mapping and mapping.bufferRows != mapping.screenRows
|
||||
if mapping and mapping.bufferRows != mapping.screenRows # 1:n mapping
|
||||
[screenRow, screenRow + mapping.screenRows]
|
||||
else
|
||||
else # 1:1 mapping
|
||||
screenRow += targetBufferRow - bufferRow
|
||||
[screenRow, screenRow + 1]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user