Skip to content

Commit

Permalink
Console example: fixed widgets enabling/disabling, step II
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn committed Jun 1, 2020
1 parent 4c24ce1 commit fcac969
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions console/src/main/java/org/jline/widget/TailTipWidgets.java
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ public boolean toggleWindow() {
} else {
destroyDescription();
}
executeWidget(LineReader.REDRAW_LINE);
callWidget(LineReader.REDRAW_LINE);
return true;
}

Expand All @@ -415,7 +415,10 @@ public boolean toggleKeyBindings() {
initDescription(descriptionSize);
}
}
executeWidget(LineReader.REDRAW_LINE);
try {
callWidget(LineReader.REDRAW_LINE);
} catch (Exception e) {
}
return enabled;
}

Expand Down

0 comments on commit fcac969

Please sign in to comment.