 
     return false unless textEditor?
 
-    textEditor.save()
-    true
+    if not textEditor.isModified()
+      false
+    else
+      node = @virtualFileSystem.getNode(path)
+      if node.digest is digest(textEditor.getText())
+        textEditor.save()
+        true
+      false
 
   saveAfterProjectReplace: (path) =>
     fs.readFile path, (err, data) =>

fs = require 'graceful-fs'
CSON = require 'cson'
_path = require 'path'
LocalStorage = window.localStorage
{CompositeDisposable} = require 'atom'


  text.replace(/\r\n|\n|\r/g, '\n')

utilPath = _path.join(__dirname, 'util')

digest = (str) ->
  crypto.createHash('md5').update(str, 'utf8').digest('hex')

module.exports =
class AtomHelper
