File tree Expand file tree Collapse file tree
app/src/main/java/io/github/yawnoc/strokeinput Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -864,17 +864,20 @@ private List<String> computeCandidateList(final String strokeDigitSequence)
864864
865865 updateCandidateOrderPreference ();
866866
867+ final Set <Integer > exactMatchCodePointSet ;
867868 final List <String > exactMatchCandidateList ;
868869 final String exactMatchCharacters = charactersFromStrokeDigitSequence .get (strokeDigitSequence );
869870 if (exactMatchCharacters != null )
870871 {
872+ exactMatchCodePointSet = Stringy .toCodePointSet (exactMatchCharacters );
871873 exactMatchCandidateList = Stringy .toCharacterList (exactMatchCharacters );
872874 exactMatchCandidateList .sort (
873875 candidateComparator (unpreferredCodePointSet , sortingRankFromCodePoint , phraseCompletionFirstCodePointList )
874876 );
875877 }
876878 else
877879 {
880+ exactMatchCodePointSet = Collections .emptySet ();
878881 exactMatchCandidateList = Collections .emptyList ();
879882 }
880883
@@ -888,6 +891,7 @@ private List<String> computeCandidateList(final String strokeDigitSequence)
888891
889892 final Set <Integer > prefixMatchCodePointSet = Stringy .toCodePointSet (prefixMatchCharactersCollection );
890893
894+ prefixMatchCodePointSet .removeAll (exactMatchCodePointSet );
891895 if (prefixMatchCodePointSet .size () > LAG_PREVENTION_CODE_POINT_COUNT )
892896 {
893897 prefixMatchCodePointSet .retainAll (commonCodePointSet );
You can’t perform that action at this time.
0 commit comments