Add a step to revert unsaved changes

I took the key part from PR #3183 and added it to the post-confirmation
flow.
This commit is contained in:
Lee Dohm
2014-08-12 00:37:51 -07:00
parent d6a8217e94
commit 13f66fb2ae

View File

@@ -450,7 +450,9 @@ class Editor extends Model
else
confirmed = true
repo.checkoutHead(filePath) if confirmed
if confirmed
@buffer.reload() if @buffer.isModified()
repo.checkoutHead(filePath)
# Copies the current file path to the native clipboard.
copyPathToClipboard: ->