mirror of
https://github.com/atom/atom.git
synced 2026-02-19 02:44:29 -05:00
Resolve filePath in Project.buildBuffer
This commit is contained in:
@@ -267,6 +267,7 @@ class Project
|
||||
#
|
||||
# Returns the {Buffer}.
|
||||
buildBuffer: (filePath, initialText) ->
|
||||
filePath = @resolve(filePath) if filePath?
|
||||
buffer = new TextBuffer({project: this, filePath, initialText})
|
||||
@addBuffer(buffer)
|
||||
@trigger 'buffer-created', buffer
|
||||
|
||||
Reference in New Issue
Block a user