From f10c4224906a7f23fd31e8ed3dbd65d1a2d4c323 Mon Sep 17 00:00:00 2001 From: "Gregory.Shrago" Date: Tue, 19 Mar 2019 19:15:23 +0300 Subject: [PATCH] fix the default scopeType, due to the changed Scopes/Dir order --- .../src/com/intellij/find/impl/FindPopupScopeUIImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/find/impl/FindPopupScopeUIImpl.java b/platform/lang-impl/src/com/intellij/find/impl/FindPopupScopeUIImpl.java index 2c8ef72cc49c..e55610ee0007 100644 --- a/platform/lang-impl/src/com/intellij/find/impl/FindPopupScopeUIImpl.java +++ b/platform/lang-impl/src/com/intellij/find/impl/FindPopupScopeUIImpl.java @@ -202,7 +202,7 @@ class FindPopupScopeUIImpl implements FindPopupScopeUI { ScopeType scope = getScope(findModel); ScopeType selectedScope = Arrays.stream(myComponents).filter(o -> o.first == scope).findFirst().orElse(null) == null - ? myComponents[myComponents.length - 1].first + ? myComponents[0].first : scope; if (selectedScope == MODULE) { myModuleComboBox.setSelectedItem(findModel.getModuleName());