Resolve filePath in Project.buildBuffer

This commit is contained in:
Kevin Sawicki & Nathan Sobo
2013-07-22 18:39:22 -06:00
parent faa8a8d9fc
commit 844469a9a7

View File

@@ -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