diff --git a/src/app/row-map.coffee b/src/app/row-map.coffee index 8dc3690e5..f6d1100b7 100644 --- a/src/app/row-map.coffee +++ b/src/app/row-map.coffee @@ -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]