From 2a7de596543fe2ede4851fc058bc3254fa9e453d Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Thu, 7 Jul 2016 17:10:22 +0200 Subject: [PATCH] When using no tabs Switcher selects 3rd element instead of 2nd --- .../platform-impl/src/com/intellij/ide/actions/Switcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/ide/actions/Switcher.java b/platform/platform-impl/src/com/intellij/ide/actions/Switcher.java index 6220dbacb697..bfbfdc0f1ae0 100644 --- a/platform/platform-impl/src/com/intellij/ide/actions/Switcher.java +++ b/platform/platform-impl/src/com/intellij/ide/actions/Switcher.java @@ -425,7 +425,7 @@ public class Switcher extends AnAction implements DumbAware { filesData.add(info); if (!firstRecentMarked) { selectionIndex = filesData.size() - 1; - if (selectionIndex != 0 || UISettings.getInstance().EDITOR_TAB_PLACEMENT != UISettings.TABS_NONE) { + if (selectionIndex != 0 || UISettings.getInstance().EDITOR_TAB_PLACEMENT != UISettings.TABS_NONE || !isPinnedMode()) { firstRecentMarked = true; } }