Skip to content

Commit

Permalink
CompletionMatcher: do not allow errors when used in completion menu
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn committed Dec 29, 2020
1 parent 14fd4f9 commit d68a3d8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4951,8 +4951,8 @@ protected boolean doList(List<Candidate> possible
String current = completed + sb.toString();
List<Candidate> cands;
if (sb.length() > 0) {
completionMatcher.compile(options, false, new CompletingWord(current), caseInsensitive
, getInt(LineReader.ERRORS, DEFAULT_ERRORS), getOriginalGroupName());
completionMatcher.compile(options, false, new CompletingWord(current), caseInsensitive, 0
, null);
cands = completionMatcher.matches(possible).stream()
.sorted(getCandidateComparator(caseInsensitive, current))
.collect(Collectors.toList());
Expand Down

0 comments on commit d68a3d8

Please sign in to comment.