Skip to content

Commit

Permalink
tailtip-toggle: call widget redraw-line to refresh cursor position,
Browse files Browse the repository at this point in the history
fixes #468
  • Loading branch information
mattirn committed Nov 13, 2019
1 parent 129c875 commit 1bb85c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtins/src/main/java/org/jline/builtins/Widgets.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,11 @@ public void initDescription(int size) {
as.add(new AttributedString(""));
}
addDescription(as);
reader.runMacro(KeyMap.ctrl('M'));
executeWidget(LineReader.REDRAW_LINE);
} else if (status != null) {
if (size < 0) {
status.update(null);
reader.runMacro(KeyMap.ctrl('M'));
executeWidget(LineReader.REDRAW_LINE);
} else {
status.clear();
}
Expand Down

0 comments on commit 1bb85c2

Please sign in to comment.