From a4197eac2bd6b27f8de23c9caf1fef8a4538e288 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Tue, 8 Sep 2015 19:59:51 +0200 Subject: [PATCH] sometimes selection jumps to 0 when speedsearching --- .../src/com/intellij/ide/actions/Switcher.java | 8 -------- 1 file changed, 8 deletions(-) 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 28cd53649030..ece097b58724 100644 --- a/platform/platform-impl/src/com/intellij/ide/actions/Switcher.java +++ b/platform/platform-impl/src/com/intellij/ide/actions/Switcher.java @@ -1090,9 +1090,6 @@ public class Switcher extends AnAction implements DumbAware { @Override public void propertyChange(@NotNull PropertyChangeEvent evt) { - final JBList list = getSelectedList(); - final Object value = list.getSelectedValue(); - if (project.isDisposed()) { myPopup.cancel(); return; @@ -1107,11 +1104,6 @@ public class Switcher extends AnAction implements DumbAware { files.getEmptyText().setText(StatusText.DEFAULT_EMPTY_TEXT); toolWindows.getEmptyText().setText(StatusText.DEFAULT_EMPTY_TEXT); } - files.repaint(); - toolWindows.repaint(); - if (value != null) { - ScrollingUtil.ensureSelectionExists(getSelectedList(list)); - } } }