mirror of
https://github.com/atom/atom.git
synced 2026-02-08 21:55:05 -05:00
first spike of buffer modified indicator
This commit is contained in:
@@ -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) ->
|
||||
|
||||
Reference in New Issue
Block a user