Skip to content

Commit

Permalink
Merge pull request #8733 from cketti/main
Browse files Browse the repository at this point in the history
Fix `TokenCompleteTextView`'s "prevent free-form text" behavior
  • Loading branch information
cketti authored Jan 14, 2025
2 parents 7fc9840 + 7f6745c commit dffd7ec
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,8 @@ public CharSequence filter(CharSequence source, int start, int end,

//Detect split characters, remove them and complete the current token instead
if (tokenizer.containsTokenTerminator(source)) {
if (currentCompletionText().length() > 0) {
performCompletion();
return "";
}
performCompletion();
return "";
}

return null;
Expand Down

0 comments on commit dffd7ec

Please sign in to comment.