Saving a buffer does not trigger a "contents-change" event

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-07-02 17:48:30 -07:00
parent ef7121dfb3
commit b59bd4bc7b
2 changed files with 12 additions and 1 deletions

View File

@@ -172,6 +172,7 @@ class Buffer
@trigger 'before-save'
fs.write path, @getText()
@file?.updateMd5()
@modified = false
@setPath(path)
@trigger 'after-save'