This commit is contained in:
Nathan Sobo
2012-02-02 16:39:56 -07:00
parent 470ec2e5e4
commit 6ed33fbd17

View File

@@ -41,9 +41,6 @@ class Buffer
getLine: (row) ->
@lines[row]
insert: (point, text) ->
@change(new Range(point, point), text)
numLines: ->
@getLines().length
@@ -53,6 +50,9 @@ class Buffer
lastLine: ->
@getLine(@lastRow())
insert: (point, text) ->
@change(new Range(point, point), text)
change: (preRange, newText) ->
postRange = new Range(_.clone(preRange.start), _.clone(preRange.start))
prefix = @lines[preRange.start.row][0...preRange.start.column]