Guts on the floor, but 2 line-wise fold specs are passing and the renderer is getting there

This commit is contained in:
Nathan Sobo
2012-05-18 19:22:56 -06:00
parent 39e02bbf9f
commit 03ae0bbbb6
5 changed files with 65 additions and 51 deletions

View File

@@ -1,4 +1,5 @@
Range = require 'range'
Point = require 'point'
module.exports =
class Fold
@@ -18,6 +19,9 @@ class Fold
# new Range([@startRow, 0], @endRow)
throw "Don't worry about this yet -- sobo"
getBufferDelta: ->
new Point(@endRow - @startRow + 1, 0)
handleBufferChange: (event) ->
# oldStartRow = @start.row