When using no tabs Switcher selects 3rd element instead of 2nd

This commit is contained in:
Konstantin Bulenkov
2016-07-07 19:31:00 +02:00
parent 77a09bcce9
commit 2a7de59654
@@ -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;
}
}