From a31862a32ddab7d354ee8074326f228cd4e5379f Mon Sep 17 00:00:00 2001 From: probablycorey Date: Mon, 14 Oct 2013 16:41:15 -0700 Subject: [PATCH] Allow RootView::open to not change focus --- src/root-view.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/root-view.coffee b/src/root-view.coffee index e6c7c8eaf..f09aac8cf 100644 --- a/src/root-view.coffee +++ b/src/root-view.coffee @@ -172,6 +172,7 @@ class RootView extends View # # Returns a promise that resolves to the {EditSession} for the file URI. open: (filePath, options={}) -> + changeFocus = options.changeFocus ? true filePath = project.resolve(filePath) initialLine = options.initialLine activePane = @getActivePane() @@ -188,7 +189,7 @@ class RootView extends View @panes.setRoot(activePane) activePane.showItem(editSession) - activePane.focus() + activePane.focus() if changeFocus editSession # Private: Only used in specs