mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
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:
@@ -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: ->
|
||||
|
||||
Reference in New Issue
Block a user