Skip to content

Commit

Permalink
LineReaderImpl: replaced some method calls with callWidget() in order to
Browse files Browse the repository at this point in the history
refresh TailTipWidgets description pane
  • Loading branch information
mattirn committed Nov 9, 2019
1 parent 92be621 commit 812ad2c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4557,6 +4557,7 @@ else if (isSet(Option.RECOGNIZE_EXACT)) {
if (hasUnambiguous) {
buf.backspace(line.rawWordLength());
buf.write(line.escape(commonPrefix, false));
callWidget(REDISPLAY);
current = commonPrefix;
if ((!isSet(Option.AUTO_LIST) && isSet(Option.AUTO_MENU))
|| (isSet(Option.AUTO_LIST) && isSet(Option.LIST_AMBIGUOUS))) {
Expand Down Expand Up @@ -4882,7 +4883,7 @@ protected boolean doMenu(List<Candidate> original, String completed, BiFunction<
// Build menu support
MenuSupport menuSupport = new MenuSupport(original, completed, escaper);
post = menuSupport;
redisplay();
callWidget(REDISPLAY);

// Loop
KeyMap<Binding> keyMap = keyMaps.get(MENU);
Expand Down Expand Up @@ -4939,7 +4940,7 @@ && getLastBinding().charAt(0) != ' '
}
}
doAutosuggestion = false;
redisplay();
callWidget(REDISPLAY);
}
return false;
}
Expand Down Expand Up @@ -5039,7 +5040,7 @@ protected boolean doList(List<Candidate> possible
}
} else if (SELF_INSERT.equals(name)) {
sb.append(getLastBinding());
buf.write(getLastBinding());
callWidget(name);
if (cands.isEmpty()) {
post = null;
return false;
Expand Down

0 comments on commit 812ad2c

Please sign in to comment.