mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs]: branchPopup reset exist selection onSpeedSearchPatternChanged
* branches are already sorted in priority order, so if no bestMatch we should use first one; * (IDEA-166858) select first common branch appearance with speed search;
This commit is contained in:
@@ -227,6 +227,7 @@ public class BranchActionGroupPopup extends FlatSpeedSearchPopup {
|
||||
|
||||
@Override
|
||||
protected void onSpeedSearchPatternChanged() {
|
||||
getList().setSelectedIndex(0);
|
||||
super.onSpeedSearchPatternChanged();
|
||||
ScrollingUtil.ensureSelectionExists(getList());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user