diff --git a/src/main/java/org/humanistika/oxygen/tei/completer/TeiCompleter.java b/src/main/java/org/humanistika/oxygen/tei/completer/TeiCompleter.java index 188f0f6..abba7af 100755 --- a/src/main/java/org/humanistika/oxygen/tei/completer/TeiCompleter.java +++ b/src/main/java/org/humanistika/oxygen/tei/completer/TeiCompleter.java @@ -93,7 +93,7 @@ public List filterAttributeValues(final List list, final WhatP if(autoCompleteSuggestions != null) { list.addAll(autoCompleteSuggestions.getSuggestions()); } - if(autoCompleteSuggestions != null && autoCompleteSuggestions.getSuggestions().size() == 0) { + if(autoCompleteSuggestions != null) { // the value needs to be prefixed with a space character to bump it to the top of the list list.add(new CustomCIValue(" Custom lookup...", this, autoCompleteSuggestions.autoCompleteContext)); }