first spike of buffer modified indicator

This commit is contained in:
Will Farrington
2012-09-29 19:18:18 -07:00
parent 7506fe7eae
commit fb7f5deb94
3 changed files with 22 additions and 2 deletions

View File

@@ -186,6 +186,7 @@ class Buffer
@change(range, '')
change: (oldRange, newText) ->
@trigger 'buffer-change'
oldRange = Range.fromObject(oldRange)
operation = new BufferChangeOperation({buffer: this, oldRange, newText})
@pushOperation(operation)
@@ -223,6 +224,7 @@ class Buffer
@undoManager.redo(editSession)
save: ->
@trigger 'buffer-change'
@saveAs(@getPath())
saveAs: (path) ->