Skip to content

Commit

Permalink
Autosuggestion choices are not refreshed after tab, fixes #545
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn committed Jun 8, 2020
1 parent 04aa193 commit feb7690
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4010,8 +4010,7 @@ public AttributedString getDisplayedBufferWithPrompts(List<AttributedString> sec
sb.styled(AttributedStyle::faint, tailTip);
full.append(sb.toAttributedString());
} else if (autosuggestion == SuggestionType.COMPLETER) {
if (buf.length() > 0 && buf.length() == buf.cursor()
&& (!lastBinding.equals("\t") || buf.prevChar() == ' ' || buf.prevChar() == '=')) {
if (buf.length() > 0 && buf.length() == buf.cursor()) {
clearChoices();
listChoices(true);
} else if (!lastBinding.equals("\t")) {
Expand Down

0 comments on commit feb7690

Please sign in to comment.