From 5b214bdfd75b7d7283c2d777ccaa78ddd761a277 Mon Sep 17 00:00:00 2001 From: probablycorey Date: Thu, 10 Oct 2013 12:01:01 -0700 Subject: [PATCH] :lipstick: --- src/root-view.coffee | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/root-view.coffee b/src/root-view.coffee index f3bab539d..78ab2592c 100644 --- a/src/root-view.coffee +++ b/src/root-view.coffee @@ -172,16 +172,15 @@ class RootView extends View # # Returns a promise that resolves to the {EditSession} for the file URI. openAsync: (filePath, options={}) -> - absoluteFilePath = filePath - filePath = project.relativize(filePath) + filePath = project.resolve(filePath) initialLine = options.initialLine activePane = @getActivePane() - editSession = activePane.itemForUri(filePath) if activePane and filePath + editSession = activePane.itemForUri(project.relativize(filePath)) if activePane and filePath promise = project.openAsync(filePath, {initialLine}) if not editSession fileSize = 0 - fileSize = fs.statSync(absoluteFilePath).size if fsUtils.exists(absoluteFilePath) + fileSize = fs.statSync(filePath).size if fsUtils.exists(filePath) Q(editSession ? promise) .then (editSession) =>