Add RowMap::inspect, which returns a string for debugging the regions

This commit is contained in:
Nathan Sobo
2013-08-20 18:33:59 -06:00
parent 116c56c236
commit b60b21cf3a

View File

@@ -174,3 +174,6 @@ class RowMap
bufferRow += region.bufferRows
screenRow += region.screenRows
{ index, screenRow, bufferRow }
inspect: ->
@regions.map(({screenRows, bufferRows}) -> "#{screenRows}:#{bufferRows}").join(', ')