From 3792d24c9fe21ab72f3f7a7f6a77064e224136df Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Tue, 5 Jun 2012 12:10:35 -0700 Subject: [PATCH] Mini editor's don't toggle active-editor-path-change event --- src/app/root-view.coffee | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/root-view.coffee b/src/app/root-view.coffee index daa574feb..7ab1e92c9 100644 --- a/src/app/root-view.coffee +++ b/src/app/root-view.coffee @@ -106,13 +106,13 @@ class RootView extends View makeEditorActive: (editor) -> previousActiveEditor = @panes.find('.editor.active').view() previousActiveEditor?.removeClass('active').off('.root-view') - editor - .addClass('active') - .on 'editor-path-change.root-view', => - @trigger 'active-editor-path-change', editor.buffer.path + editor.addClass('active') - if not previousActiveEditor or editor.buffer.path != previousActiveEditor.buffer.path - @trigger 'active-editor-path-change', editor.buffer.path + if not editor.mini + editor.on 'editor-path-change.root-view', => + @trigger 'active-editor-path-change', editor.buffer.path + if not previousActiveEditor or editor.buffer.path != previousActiveEditor.buffer.path + @trigger 'active-editor-path-change', editor.buffer.path activeKeybindings: -> keymap.bindingsForElement(document.activeElement)