Make Editor.getPath return null if edit session is null

This commit is contained in:
Corey Johnson & Nathan Sobo
2013-02-27 18:26:46 -07:00
committed by probablycorey
parent 15144514bb
commit 5d9e20afa4

View File

@@ -321,7 +321,7 @@ class Editor extends View
checkoutHead: -> @getBuffer().checkoutHead()
setText: (text) -> @getBuffer().setText(text)
getText: -> @getBuffer().getText()
getPath: -> @getBuffer().getPath()
getPath: -> @activeEditSession?.getPath()
getLineCount: -> @getBuffer().getLineCount()
getLastBufferRow: -> @getBuffer().getLastRow()
getTextInRange: (range) -> @getBuffer().getTextInRange(range)