only propose value if the existing prefix is a real prefix

This commit is contained in:
2017-09-23 13:31:34 +02:00
parent 4360944683
commit c9ff8b5586
2 changed files with 16 additions and 7 deletions

View File

@@ -227,7 +227,7 @@ public class QueryCompletionPdbLangParser extends PdbLangParser {
final SortedSet<String> result = new TreeSet<>();
for (final String value : availableValuesForKey) {
if (value.startsWith(propertyValuePrefix)) {
if (value.startsWith(propertyValuePrefix) && !value.equals(propertyValuePrefix)) {
result.add(value);
}
}