From b60b21cf3aa9a977c0afa6251ce920cb87e98569 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Tue, 20 Aug 2013 18:33:59 -0600 Subject: [PATCH] Add RowMap::inspect, which returns a string for debugging the regions --- src/row-map.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/row-map.coffee b/src/row-map.coffee index 5c8290014..568c55ae7 100644 --- a/src/row-map.coffee +++ b/src/row-map.coffee @@ -174,3 +174,6 @@ class RowMap bufferRow += region.bufferRows screenRow += region.screenRows { index, screenRow, bufferRow } + + inspect: -> + @regions.map(({screenRows, bufferRows}) -> "#{screenRows}:#{bufferRows}").join(', ')