mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Make Editor.getPath return null if edit session is null
This commit is contained in:
committed by
probablycorey
parent
15144514bb
commit
5d9e20afa4
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user