Skip to content

Commit

Permalink
Autosuggestion choices not refreshed after tab #545, fixed regression…
Browse files Browse the repository at this point in the history
… caused by commit feb7690
  • Loading branch information
mattirn committed Jul 11, 2020
1 parent 722f2ef commit 25824ac
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4006,7 +4006,9 @@ 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()) {
if (buf.length() > 0 && buf.length() == buf.cursor()
&& (!lastBinding.equals("\t") || buf.prevChar() == ' ' || buf.prevChar() == '='
|| buf.prevChar() == '/' || buf.prevChar() == '.')) {
clearChoices();
listChoices(true);
} else if (!lastBinding.equals("\t")) {
Expand Down

0 comments on commit 25824ac

Please sign in to comment.