mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-87677 End space for exact match doesn't work with middle matching in goto popups
This commit is contained in:
+1
-1
@@ -54,7 +54,7 @@ public class DefaultChooseByNameItemProvider implements ChooseByNameItemProvider
|
||||
String modifiedNamePattern = null;
|
||||
|
||||
if (base.isSearchInAnyPlace() && !namePattern.trim().isEmpty()) {
|
||||
modifiedNamePattern = "*" + namePattern + "*";
|
||||
modifiedNamePattern = "*" + namePattern + (namePattern.endsWith(" ") ? "" : "*");
|
||||
}
|
||||
|
||||
boolean empty = namePattern.isEmpty() || namePattern.equals("@"); // TODO[yole]: remove implicit dependency
|
||||
|
||||
Reference in New Issue
Block a user