mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Access project from atom global
This commit is contained in:
@@ -589,7 +589,7 @@ class Editor extends View
|
||||
# Checkout the HEAD revision of this editor's file.
|
||||
checkoutHead: ->
|
||||
if path = @getPath()
|
||||
@project.getRepo()?.checkoutHead(path)
|
||||
atom.project.getRepo()?.checkoutHead(path)
|
||||
|
||||
# {Delegates to: EditSession.setText}
|
||||
setText: (text) -> @activeEditSession.setText(text)
|
||||
|
||||
Reference in New Issue
Block a user